|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fife.ui.autocomplete.AbstractCompletion
org.fife.ui.autocomplete.BasicCompletion
org.fife.ui.autocomplete.VariableCompletion
org.fife.ui.autocomplete.FunctionCompletion
public class FunctionCompletion
A completion choice representing a function.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.fife.ui.autocomplete.ParameterizedCompletion |
|---|
ParameterizedCompletion.Parameter |
| Constructor Summary | |
|---|---|
FunctionCompletion(CompletionProvider provider,
String name,
String returnType)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
addDefinitionString(StringBuffer sb)
|
protected void |
addParameters(StringBuffer sb)
Adds HTML describing the parameters to this function to a buffer. |
String |
getDefinitionString()
Returns the "definition string" for this function completion. |
ParameterizedCompletion.Parameter |
getParam(int index)
Returns the specified ParameterizedCompletion.Parameter. |
int |
getParamCount()
Returns the number of parameters to this function. |
String |
getReturnValueDescription()
Returns the description of the return value of this function. |
String |
getSummary()
Returns the description of this auto-complete choice. |
String |
getToolTipText()
Returns the tool tip text to display for mouse hovers over this completion. |
void |
setParams(List params)
Sets the parameters to this function. |
void |
setReturnValueDescription(String desc)
Sets the description of the return value of this function. |
| Methods inherited from class org.fife.ui.autocomplete.VariableCompletion |
|---|
getDefinedIn, getName, getType, possiblyAddDefinedIn, possiblyAddDescription, setDefinedIn, toString |
| Methods inherited from class org.fife.ui.autocomplete.BasicCompletion |
|---|
getReplacementText, getShortDescription, setShortDescription, setSummary |
| Methods inherited from class org.fife.ui.autocomplete.AbstractCompletion |
|---|
compareTo, getAlreadyEntered, getInputText, getProvider, getRelevance, setRelevance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.fife.ui.autocomplete.Completion |
|---|
compareTo, getAlreadyEntered, getInputText, getProvider, getRelevance, getReplacementText |
| Constructor Detail |
|---|
public FunctionCompletion(CompletionProvider provider,
String name,
String returnType)
provider - The parent provider.name - The name of this function.returnType - The return type of this function.| Method Detail |
|---|
protected void addDefinitionString(StringBuffer sb)
addDefinitionString in class VariableCompletionprotected void addParameters(StringBuffer sb)
sb - The buffer to append to.public String getDefinitionString()
printf" function, this would return
"int printf(const char *, ...)".
getDefinitionString in interface ParameterizedCompletiongetDefinitionString in class VariableCompletionpublic ParameterizedCompletion.Parameter getParam(int index)
ParameterizedCompletion.Parameter.
getParam in interface ParameterizedCompletionindex - The index of the parameter to retrieve.
getParamCount()public int getParamCount()
getParamCount in interface ParameterizedCompletiongetParam(int)public String getReturnValueDescription()
null if there is none.setReturnValueDescription(String)public String getSummary()
getSummary in interface CompletiongetSummary in class VariableCompletionnull if there is no description for this
completion.public String getToolTipText()
Note that for this functionality to be enabled, a
JTextComponent must be registered with the
ToolTipManager, and the text component must know to search
for this value. In the case of an
RSyntaxTextArea, this
can be done with a org.fife.ui.rtextarea.ToolTipSupplier that
calls into
CompletionProvider.getCompletionsAt(JTextComponent, java.awt.Point).
getToolTipText in interface CompletiongetToolTipText in class VariableCompletionnull if
none.public void setParams(List params)
params - The parameters. This should be a list of
ParameterizedCompletion.Parameters.getParam(int),
getParamCount()public void setReturnValueDescription(String desc)
desc - The description.getReturnValueDescription()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||