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 interfaceParameterizedCompletionA 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 classAbstractCompletionBase class for possible completions.classBasicCompletionA straightforwardCompletionimplementation.classFunctionCompletionA completion choice representing a function.classMarkupTagCompletionA completion representing a tag in markup, such as HTML or XML.classShorthandCompletionA completion where the input text is shorthand for (really, just different from) the actual text to be inserted.classTemplateCompletionA completion made up of a template with arbitrary parameters that the user can tab through and fill in.classVariableCompletionA 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 CompletionAutoCompleteDescWindow.HistoryEntry. completionprivate CompletionAutoCompleteDescWindow.TimerAction. completionprivate CompletionAutoCompletePopupWindow. lastSelectionA 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. choicesListListA list of lists of choices for each parameter.protected java.util.List<Completion>AbstractCompletionProvider. completionsThe completions this provider is aware of.private java.util.List<Completion>CompletionXMLParser. completionsThe completions found after parsing the XML.private java.util.List<Completion>CompletionListModel. delegateContainer for items in this model.private java.util.List<Completion>DefaultCompletionProvider. lastParameterizedCompletionsAtUsed 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. listThe list of completion choices.private javax.swing.DefaultListModel<Completion>ParameterizedCompletionChoicesWindow. modelThe currently displayed completion choices.private static java.util.Comparator<Completion>CompletionProviderBase. SORT_BY_RELEVANCE_COMPARATORComparator used to sort completions by their relevance before sorting them lexicographically.private static java.util.Comparator<Completion>ParameterizedCompletionChoicesWindow. SORT_BY_RELEVANCE_COMPARATORComparator 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 CompletionCompletionListModel. getElementAt(int index)CompletionAutoCompletePopupWindow. getSelection()Returns the selected value, ornullif 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 ofCompletions 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 voidAbstractCompletionProvider. addCompletion(Completion c)Adds a single completion to this provider.protected voidAbstractCompletionProvider. checkProviderAndAdd(Completion c)intSortByRelevanceComparator. compare(Completion c1, Completion c2)intAbstractCompletion. compareTo(Completion c2)intCompletion. compareTo(Completion other)Compares this completion to another one lexicographically, ignoring case.intFunctionCompletion. compareTo(Completion c2)Overridden to compare methods by their comparison strings.protected java.lang.StringAutoCompletion. getReplacementText(Completion c, javax.swing.text.Document doc, int start, int len)Returns the text to replace with in the document.protected voidAutoCompletion. insertCompletion(Completion c)Inserts a completion.protected voidAutoCompletion. insertCompletion(Completion c, boolean typedParamListStartChar)Inserts a completion.protected voidCompletionCellRenderer. prepareForOtherCompletion(javax.swing.JList<?> list, Completion c, int index, boolean selected, boolean hasFocus)Prepares this renderer to display a completion not specifically handled elsewhere.booleanAbstractCompletionProvider. removeCompletion(Completion c)Removes the specified completion from this provider.(package private) voidAutoCompleteDescWindow.TimerAction. setCompletion(Completion c, java.lang.String anchor, boolean addToHistory)voidAutoCompleteDescWindow. setDescriptionFor(Completion item)Sets the description displayed in this window.protected voidAutoCompleteDescWindow. setDescriptionFor(Completion item, boolean addToHistory)Sets the description displayed in this window.protected voidAutoCompleteDescWindow. setDescriptionFor(Completion item, java.lang.String anchor, boolean addToHistory)Sets the description displayed in this window.private voidAutoCompleteDescWindow. setDisplayedDesc(Completion completion, java.lang.String anchor, boolean addToHistory)protected voidCompletionCellRenderer. 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 voidCompletionCellRenderer. 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.voidAutoCompleteDescWindow. showSummaryFor(Completion completion, java.lang.String anchor)Callback for customExternalURLHandlers.voidDescWindowCallback. showSummaryFor(Completion completion, java.lang.String anchor)Callback allowing a new code completion's description to be displayed in the description window.voidExternalURLHandler. 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 voidAbstractCompletionProvider. addCompletions(java.util.List<Completion> completions)AddsCompletions to this provider.voidAutoCompletePopupWindow. setCompletions(java.util.List<Completion> completions)Sets the completions to display in the choices list.voidCompletionListModel. 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)
-