|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fife.ui.autocomplete.CompletionProviderBase
A base class for all standard completion providers. This class implements functionality that should be sharable across all CompletionProvider implementations.
AbstractCompletionProvider| Field Summary | |
protected static java.lang.String |
EMPTY_STRING
|
| Constructor Summary | |
CompletionProviderBase()
|
|
| Method Summary | |
void |
clearParameterizedCompletionParams()
Clears the values used to identify and insert "parameterized completions" (e.g. functions or methods). After this method is called, functions and methods will not have their parameters auto-completed. |
java.util.List |
getCompletions(javax.swing.text.JTextComponent comp)
Gets the possible completions for the text component at the current caret position. |
protected abstract java.util.List |
getCompletionsImpl(javax.swing.text.JTextComponent comp)
Does the dirty work of creating a list of completions. |
javax.swing.ListCellRenderer |
getListCellRenderer()
Returns the cell renderer for completions returned from this provider. |
char |
getParameterListEnd()
Returns the text that marks the end of a list of parameters to a function or method. |
java.lang.String |
getParameterListSeparator()
Returns the text that separates parameters to a function or method. |
char |
getParameterListStart()
Returns the text that marks the start of a list of parameters to a function or method. |
CompletionProvider |
getParent()
Returns the parent completion provider. |
void |
setListCellRenderer(javax.swing.ListCellRenderer r)
Sets the renderer to use when displaying completion choices. |
void |
setParameterizedCompletionParams(char listStart,
java.lang.String separator,
char listEnd)
Sets the values used to identify and insert "parameterized completions" (e.g. functions or methods). If this method isn't called, functions and methods will not have their parameters auto-completed. |
void |
setParent(CompletionProvider parent)
Sets the parent completion provider. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.fife.ui.autocomplete.CompletionProvider |
getAlreadyEnteredText, getCompletionsAt, getParameterizedCompletions |
| Field Detail |
protected static final java.lang.String EMPTY_STRING
| Constructor Detail |
public CompletionProviderBase()
| Method Detail |
public void clearParameterizedCompletionParams()
clearParameterizedCompletionParams in interface CompletionProviderCompletionProvider.setParameterizedCompletionParams(char, String, char)public java.util.List getCompletions(javax.swing.text.JTextComponent comp)
getCompletions in interface CompletionProvidercomp - The text component.
Completions. If no completions are
available, this may be null.protected abstract java.util.List getCompletionsImpl(javax.swing.text.JTextComponent comp)
comp - The text component to look in.
public javax.swing.ListCellRenderer getListCellRenderer()
getListCellRenderer in interface CompletionProvidernull if the default should
be used.CompletionProvider.setListCellRenderer(ListCellRenderer)public char getParameterListEnd()
getParameterListEnd in interface CompletionProvider)'.CompletionProvider.getParameterListStart(),
CompletionProvider.getParameterListSeparator(),
CompletionProvider.setParameterizedCompletionParams(char, String, char)public java.lang.String getParameterListSeparator()
getParameterListSeparator in interface CompletionProvider, ".CompletionProvider.getParameterListStart(),
CompletionProvider.getParameterListEnd(),
CompletionProvider.setParameterizedCompletionParams(char, String, char)public char getParameterListStart()
getParameterListStart in interface CompletionProvider(".CompletionProvider.getParameterListEnd(),
CompletionProvider.getParameterListSeparator(),
CompletionProvider.setParameterizedCompletionParams(char, String, char)public CompletionProvider getParent()
getParent in interface CompletionProviderCompletionProvider.setParent(CompletionProvider)public void setListCellRenderer(javax.swing.ListCellRenderer r)
setListCellRenderer in interface CompletionProviderr - The renderer to use.CompletionProvider.getListCellRenderer()
public void setParameterizedCompletionParams(char listStart,
java.lang.String separator,
char listEnd)
setParameterizedCompletionParams in interface CompletionProviderlistStart - The character that marks the beginning of a list of
parameters, such as '(' in C or Java.separator - Text that should separate parameters in a parameter
list when one is inserted. For example, ", ".listEnd - The character that marks the end of a list of parameters,
such as ')' in C or Java.CompletionProvider.clearParameterizedCompletionParams()public void setParent(CompletionProvider parent)
setParent in interface CompletionProviderparent - The parent provider. null means there will
be no parent provider.CompletionProvider.getParent()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||