Uses of Interface
org.fife.ui.autocomplete.Completion
-
Uses of Completion in org.fife.ui.autocomplete
Subinterfaces of Completion in org.fife.ui.autocompleteModifier and TypeInterfaceDescriptioninterface
A completion option that takes parameters, such as a function or method.Classes in org.fife.ui.autocomplete that implement CompletionModifier and TypeClassDescriptionclass
Base class for possible completions.class
A straightforwardCompletion
implementation.class
A completion choice representing a function.class
A completion representing a tag in markup, such as HTML or XML.class
A completion where the input text is shorthand for (really, just different from) the actual text to be inserted.class
A completion made up of a template with arbitrary parameters that the user can tab through and fill in.class
A completion for a variable (or constant) in a programming language.Fields in org.fife.ui.autocomplete declared as CompletionModifier and TypeFieldDescriptionprivate 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 CompletionModifier and TypeFieldDescriptionprivate List
<List<Completion>> ParameterizedCompletionChoicesWindow.choicesListList
A list of lists of choices for each parameter.protected List
<Completion> AbstractCompletionProvider.completions
The completions this provider is aware of.private List
<Completion> CompletionXMLParser.completions
The completions found after parsing the XML.private final List
<Completion> CompletionListModel.delegate
Container for items in this model.private 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 JList
<Completion> ParameterizedCompletionChoicesWindow.list
The list of completion choices.private DefaultListModel
<Completion> ParameterizedCompletionChoicesWindow.model
The currently displayed completion choices.private static final Comparator
<Completion> CompletionProviderBase.SORT_BY_RELEVANCE_COMPARATOR
Comparator used to sort completions by their relevance before sorting them lexicographically.private static final 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 CompletionModifier and TypeMethodDescriptionCompletionListModel.getElementAt
(int index) AutoCompletePopupWindow.getSelection()
Returns the selected value, ornull
if nothing is selected.Methods in org.fife.ui.autocomplete that return types with arguments of type CompletionModifier and TypeMethodDescriptionAbstractCompletionProvider.getCompletionByInputText
(String inputText) Returns a list ofCompletion
s in this provider with the specified input text.CompletionProvider.getCompletions
(JTextComponent comp) Gets the possible completions for the text component at the current caret position.CompletionProviderBase.getCompletions
(JTextComponent comp) CompletionXMLParser.getCompletions()
Returns the completions found after parsing the XML.CompletionProvider.getCompletionsAt
(JTextComponent comp, Point p) Returns the completions that have been entered at the specified visual location.DefaultCompletionProvider.getCompletionsAt
(JTextComponent tc, Point p) LanguageAwareCompletionProvider.getCompletionsAt
(JTextComponent tc, Point p) protected List
<Completion> AbstractCompletionProvider.getCompletionsImpl
(JTextComponent comp) protected abstract List
<Completion> CompletionProviderBase.getCompletionsImpl
(JTextComponent comp) Does the dirty work of creating a list of completions.protected List
<Completion> LanguageAwareCompletionProvider.getCompletionsImpl
(JTextComponent comp) Does the dirty work of creating a list of completions.ParameterChoicesProvider.getParameterChoices
(JTextComponent tc, ParameterizedCompletion.Parameter param) Returns a list of choices for a specific parameter.Methods in org.fife.ui.autocomplete with parameters of type CompletionModifier and TypeMethodDescriptionvoid
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 String
AutoCompletion.getReplacementText
(Completion c, Document doc, int start, int len) Returns the text to replace with in the document.protected final void
AutoCompletion.insertCompletion
(Completion c) Inserts a completion.protected void
AutoCompletion.insertCompletion
(Completion c, boolean typedParamListStartChar) Inserts a completion.protected void
CompletionCellRenderer.prepareForOtherCompletion
(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, 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, String anchor, boolean addToHistory) Sets the description displayed in this window.private void
AutoCompleteDescWindow.setDisplayedDesc
(Completion completion, 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, 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, String anchor) Callback for customExternalURLHandler
s.void
DescWindowCallback.showSummaryFor
(Completion completion, String anchor) Callback allowing a new code completion's description to be displayed in the description window.void
ExternalURLHandler.urlClicked
(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 CompletionModifier and TypeMethodDescriptionvoid
AbstractCompletionProvider.addCompletions
(List<Completion> completions) AddsCompletion
s to this provider.void
AutoCompletePopupWindow.setCompletions
(List<Completion> completions) Sets the completions to display in the choices list.void
CompletionListModel.setContents
(Collection<Completion> contents) Sets the contents of this model.Constructors in org.fife.ui.autocomplete with parameters of type CompletionModifierConstructorDescription(package private)
HistoryEntry
(Completion completion, String summary, String anchor)