java.lang.Object
de.grogra.pf.ui.autocomplete.impl.AbstractCompletion
de.grogra.pf.ui.autocomplete.impl.ClassCompletion
- All Implemented Interfaces:
Completion,Comparable<Completion>
A completion for classes
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<Completion> protected AbstractCompletionProviderprotected List<Completion> protected AbstractCompletionProviderprotected List<Completion> -
Constructor Summary
ConstructorsConstructorDescriptionClassCompletion(CompletionProvider provider, String name, CompletionContext cc) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected voidvoidvoidvoidvoidvoidaddSuperClass(String sc) getClazz()in a packageReturn the definition of this variable completion.getName()Returns the name of this variable.Returns the text to insert as the result of this auto-completion.Returns the description of this auto-complete choice.Tooltip used when hovering on that word.voidvoidinitializeProviders(CompletionProvider parent, Icon iconForConstructor) booleanprotected voidAdds some HTML describing where this variable is defined, if this information is known.protected booleanAdds the description text as HTML to a buffer, if a description is defined.voidsetAbstract(boolean a) voidvoidsetDefinedIn(String definedIn) Sets where this variable is defined.voidsetShortDescription(String shortDesc) voidsetSummary(String summary) toString()Overridden to return the name of the variable being completed.Methods inherited from class de.grogra.pf.ui.autocomplete.impl.AbstractCompletion
compareTo, getAlreadyEntered, getCompareString, getIcon, getInputText, getProvider, getRelevance, setIcon, setRelevance
-
Field Details
-
constructors
-
methods
-
fields
-
constructorsProvider
-
internalsProvider
-
-
Constructor Details
-
ClassCompletion
Constructor.
-
-
Method Details
-
getReplacementText
Description copied from interface:CompletionReturns the text to insert as the result of this auto-completion. This is the "complete" text, including any text that replaces what the user has already typed.- Returns:
- The replacement text.
- See Also:
-
initializeProviders
-
initializeProviders
-
getConstructorsProvider
-
getInternalsProvider
-
addDefinitionString
-
getDefinitionString
Return the definition of this variable completion.- Returns:
- The definition string.
-
getDefinedIn
in a package -
getName
Returns the name of this variable.- Returns:
- The name.
-
getSummary
Description copied from interface:CompletionReturns the description of this auto-complete choice. This can be used in a popup "description window."- Returns:
- This item's description. This should be HTML. It may be
nullif there is no description for this completion.
-
getToolTipText
Tooltip used when hovering on that word. Not working with current impl?- Specified by:
getToolTipTextin interfaceCompletion- Overrides:
getToolTipTextin classAbstractCompletion- Returns:
- The tool tip text.
-
possiblyAddDefinedIn
Adds some HTML describing where this variable is defined, if this information is known.- Parameters:
sb- The buffer to append to.
-
possiblyAddDescription
Adds the description text as HTML to a buffer, if a description is defined.- Parameters:
sb- The buffer to append to.- Returns:
- Whether there was a description to add.
-
setDefinedIn
Sets where this variable is defined.- Parameters:
definedIn- Where this variable is defined.- See Also:
-
setClazz
-
getClazz
-
toString
Overridden to return the name of the variable being completed.- Overrides:
toStringin classAbstractCompletion- Returns:
- A string representation of this completion.
-
addSuperClass
-
getSuperClass
-
addConstructors
-
addConstructors
-
getConstructors
-
addMethods
-
addMethods
-
getMethods
-
addFields
-
addFields
-
getFields
-
setAbstract
public void setAbstract(boolean a) -
isAbstract
public boolean isAbstract() -
getShortDescription
-
setShortDescription
-
setSummary
-