Uses of Interface
org.fife.ui.autocomplete.Completion
-
-
Uses of Completion in org.fife.ui.autocomplete
Subinterfaces of Completion in org.fife.ui.autocomplete Modifier and Type Interface Description interface
ParameterizedCompletion
A completion option that takes parameters, such as a function or method.Classes in org.fife.ui.autocomplete that implement Completion Modifier and Type Class Description class
AbstractCompletion
Base class for possible completions.class
BasicCompletion
A straightforwardCompletion
implementation.class
FunctionCompletion
A completion choice representing a function.class
MarkupTagCompletion
A completion representing a tag in markup, such as HTML or XML.class
ShorthandCompletion
A completion where the input text is shorthand for (really, just different from) the actual text to be inserted.class
TemplateCompletion
A completion made up of a template with arbitrary parameters that the user can tab through and fill in.class
VariableCompletion
A completion for a variable (or constant) in a programming language.Fields in org.fife.ui.autocomplete declared as Completion Modifier and Type Field Description private Completion
AutoCompleteDescWindow.HistoryEntry. completion
private Completion
AutoCompleteDescWindow.TimerAction. completion
private Completion
AutoCompletePopupWindow. lastSelection
A hack to work around the fact that we clear our completion model (and our selection) when hiding the completion window.Fields in org.fife.ui.autocomplete with type parameters of type Completion Modifier and Type Field Description private java.util.List<java.util.List<Completion>>
ParameterizedCompletionChoicesWindow. choicesListList
A list of lists of choices for each parameter.protected java.util.List<Completion>
AbstractCompletionProvider. completions
The completions this provider is aware of.private java.util.List<Completion>
CompletionXMLParser. completions
The completions found after parsing the XML.private java.util.List<Completion>
CompletionListModel. delegate
Container for items in this model.private java.util.List<Completion>
DefaultCompletionProvider. lastParameterizedCompletionsAt
Used to speed upDefaultCompletionProvider.getCompletionsAt(JTextComponent, Point)
, since this may be called multiple times in succession (this is usually called byJTextComponent.getToolTipText()
, and if the user wiggles the mouse while a tool tip is displayed, this method gets repeatedly called.private javax.swing.JList<Completion>
ParameterizedCompletionChoicesWindow. list
The list of completion choices.private javax.swing.DefaultListModel<Completion>
ParameterizedCompletionChoicesWindow. model
The currently displayed completion choices.private static java.util.Comparator<Completion>
CompletionProviderBase. SORT_BY_RELEVANCE_COMPARATOR
Comparator used to sort completions by their relevance before sorting them lexicographically.private static java.util.Comparator<Completion>
ParameterizedCompletionChoicesWindow. SORT_BY_RELEVANCE_COMPARATOR
Comparator used to sort completions by their relevance before sorting them lexicographically.Methods in org.fife.ui.autocomplete that return Completion Modifier and Type Method Description Completion
CompletionListModel. getElementAt(int index)
Completion
AutoCompletePopupWindow. getSelection()
Returns the selected value, ornull
if nothing is selected.Methods in org.fife.ui.autocomplete that return types with arguments of type Completion Modifier and Type Method Description java.util.List<Completion>
AbstractCompletionProvider. getCompletionByInputText(java.lang.String inputText)
Returns a list ofCompletion
s in this provider with the specified input text.java.util.List<Completion>
CompletionProvider. getCompletions(javax.swing.text.JTextComponent comp)
Gets the possible completions for the text component at the current caret position.java.util.List<Completion>
CompletionProviderBase. getCompletions(javax.swing.text.JTextComponent comp)
java.util.List<Completion>
CompletionXMLParser. getCompletions()
Returns the completions found after parsing the XML.java.util.List<Completion>
CompletionProvider. getCompletionsAt(javax.swing.text.JTextComponent comp, java.awt.Point p)
Returns the completions that have been entered at the specified visual location.java.util.List<Completion>
DefaultCompletionProvider. getCompletionsAt(javax.swing.text.JTextComponent tc, java.awt.Point p)
java.util.List<Completion>
LanguageAwareCompletionProvider. getCompletionsAt(javax.swing.text.JTextComponent tc, java.awt.Point p)
protected java.util.List<Completion>
AbstractCompletionProvider. getCompletionsImpl(javax.swing.text.JTextComponent comp)
protected abstract java.util.List<Completion>
CompletionProviderBase. getCompletionsImpl(javax.swing.text.JTextComponent comp)
Does the dirty work of creating a list of completions.protected java.util.List<Completion>
LanguageAwareCompletionProvider. getCompletionsImpl(javax.swing.text.JTextComponent comp)
Does the dirty work of creating a list of completions.java.util.List<Completion>
ParameterChoicesProvider. getParameterChoices(javax.swing.text.JTextComponent tc, ParameterizedCompletion.Parameter param)
Returns a list of choices for a specific parameter.Methods in org.fife.ui.autocomplete with parameters of type Completion Modifier and Type Method Description void
AbstractCompletionProvider. addCompletion(Completion c)
Adds a single completion to this provider.protected void
AbstractCompletionProvider. checkProviderAndAdd(Completion c)
int
SortByRelevanceComparator. compare(Completion c1, Completion c2)
int
AbstractCompletion. compareTo(Completion c2)
int
Completion. compareTo(Completion other)
Compares this completion to another one lexicographically, ignoring case.int
FunctionCompletion. compareTo(Completion c2)
Overridden to compare methods by their comparison strings.protected java.lang.String
AutoCompletion. getReplacementText(Completion c, javax.swing.text.Document doc, int start, int len)
Returns the text to replace with in the document.protected void
AutoCompletion. insertCompletion(Completion c)
Inserts a completion.protected void
AutoCompletion. insertCompletion(Completion c, boolean typedParamListStartChar)
Inserts a completion.protected void
CompletionCellRenderer. prepareForOtherCompletion(javax.swing.JList<?> list, Completion c, int index, boolean selected, boolean hasFocus)
Prepares this renderer to display a completion not specifically handled elsewhere.boolean
AbstractCompletionProvider. removeCompletion(Completion c)
Removes the specified completion from this provider.(package private) void
AutoCompleteDescWindow.TimerAction. setCompletion(Completion c, java.lang.String anchor, boolean addToHistory)
void
AutoCompleteDescWindow. setDescriptionFor(Completion item)
Sets the description displayed in this window.protected void
AutoCompleteDescWindow. setDescriptionFor(Completion item, boolean addToHistory)
Sets the description displayed in this window.protected void
AutoCompleteDescWindow. setDescriptionFor(Completion item, java.lang.String anchor, boolean addToHistory)
Sets the description displayed in this window.private void
AutoCompleteDescWindow. setDisplayedDesc(Completion completion, java.lang.String anchor, boolean addToHistory)
protected void
CompletionCellRenderer. setIconWithDefault(Completion completion)
Sets the icon to display based off of a completion, falling back to the empty icon if the completion has no icon.protected void
CompletionCellRenderer. setIconWithDefault(Completion completion, javax.swing.Icon defaultIcon)
Sets the icon to display based off of a completion, falling back to a default icon if the completion has no icon.void
AutoCompleteDescWindow. showSummaryFor(Completion completion, java.lang.String anchor)
Callback for customExternalURLHandler
s.void
DescWindowCallback. showSummaryFor(Completion completion, java.lang.String anchor)
Callback allowing a new code completion's description to be displayed in the description window.void
ExternalURLHandler. urlClicked(javax.swing.event.HyperlinkEvent e, Completion c, DescWindowCallback callback)
Called when an external URL is clicked in the description window.Method parameters in org.fife.ui.autocomplete with type arguments of type Completion Modifier and Type Method Description void
AbstractCompletionProvider. addCompletions(java.util.List<Completion> completions)
AddsCompletion
s to this provider.void
AutoCompletePopupWindow. setCompletions(java.util.List<Completion> completions)
Sets the completions to display in the choices list.void
CompletionListModel. setContents(java.util.Collection<Completion> contents)
Sets the contents of this model.Constructors in org.fife.ui.autocomplete with parameters of type Completion Constructor Description HistoryEntry(Completion completion, java.lang.String summary, java.lang.String anchor)
-