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
Modifier and TypeFieldDescriptionprotected List<Completion>
protected AbstractCompletionProvider
protected List<Completion>
protected AbstractCompletionProvider
protected List<Completion>
-
Constructor Summary
ConstructorDescriptionClassCompletion
(CompletionProvider provider, String name, CompletionContext cc) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
protected void
void
void
void
void
void
addSuperClass
(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.void
void
initializeProviders
(CompletionProvider parent, Icon iconForConstructor) boolean
protected void
Adds some HTML describing where this variable is defined, if this information is known.protected boolean
Adds the description text as HTML to a buffer, if a description is defined.void
setAbstract
(boolean a) void
void
setDefinedIn
(String definedIn) Sets where this variable is defined.void
setShortDescription
(String shortDesc) void
setSummary
(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:Completion
Returns 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:Completion
Returns 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
null
if there is no description for this completion.
-
getToolTipText
Tooltip used when hovering on that word. Not working with current impl?- Specified by:
getToolTipText
in interfaceCompletion
- Overrides:
getToolTipText
in 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:
toString
in 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
-