public class JSClassCompletion extends org.fife.ui.autocomplete.BasicCompletion implements JSCompletion
BASIC_COMPLETION_RELEVANCE, BEAN_METHOD_RELEVANCE, DEFAULT_CLASS_RELEVANCE, DEFAULT_FUNCTION_RELEVANCE, DEFAULT_VARIABLE_RELEVANCE, GLOBAL_FUNCTION_RELEVANCE, GLOBAL_VARIABLE_RELEVANCE, LOCAL_VARIABLE_RELEVANCE, STATIC_FIELD_RELEVANCE, TEMPLATE_RELEVANCE| Constructor and Description |
|---|
JSClassCompletion(org.fife.ui.autocomplete.CompletionProvider provider,
ClassFile cf,
boolean qualified) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(org.fife.ui.autocomplete.Completion c2) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAlreadyEntered(javax.swing.text.JTextComponent comp) |
java.lang.String |
getClassName(boolean fullyQualified)
Returns the name of the class represented by this completion.
|
java.lang.String |
getEnclosingClassName(boolean fullyQualified)
Returns the name of the enclosing class.
|
javax.swing.Icon |
getIcon() |
java.lang.String |
getLookupName() |
java.lang.String |
getPackageName()
Returns the package this class or interface is in.
|
java.lang.String |
getSummary() |
java.lang.String |
getToolTipText() |
java.lang.String |
getType(boolean qualified) |
int |
hashCode() |
void |
rendererText(java.awt.Graphics g,
int x,
int y,
boolean selected) |
getReplacementText, getShortDescription, setShortDescription, setSummary, toStringgetInputText, getProvider, getRelevance, setIcon, setRelevanceclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetInputText, getProvider, getRelevance, getReplacementTextpublic JSClassCompletion(org.fife.ui.autocomplete.CompletionProvider provider, ClassFile cf, boolean qualified)
public int compareTo(org.fife.ui.autocomplete.Completion c2)
compareTo in interface java.lang.Comparable<org.fife.ui.autocomplete.Completion>compareTo in interface org.fife.ui.autocomplete.CompletioncompareTo in class org.fife.ui.autocomplete.AbstractCompletionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getAlreadyEntered(javax.swing.text.JTextComponent comp)
getAlreadyEntered in interface org.fife.ui.autocomplete.CompletiongetAlreadyEntered in class org.fife.ui.autocomplete.AbstractCompletionpublic java.lang.String getClassName(boolean fullyQualified)
fullyQualified - Whether the returned name should be fully
qualified.getPackageName()public javax.swing.Icon getIcon()
getIcon in interface org.fife.ui.autocomplete.CompletiongetIcon in class org.fife.ui.autocomplete.AbstractCompletionpublic java.lang.String getPackageName()
null if it is not in a package.getClassName(boolean)public java.lang.String getSummary()
getSummary in interface org.fife.ui.autocomplete.CompletiongetSummary in class org.fife.ui.autocomplete.BasicCompletionpublic java.lang.String getToolTipText()
getToolTipText in interface org.fife.ui.autocomplete.CompletiongetToolTipText in class org.fife.ui.autocomplete.AbstractCompletionpublic int hashCode()
hashCode in class java.lang.Objectpublic void rendererText(java.awt.Graphics g,
int x,
int y,
boolean selected)
public java.lang.String getEnclosingClassName(boolean fullyQualified)
JSCompletiongetEnclosingClassName in interface JSCompletionfullyQualified - Whether the name returned should be fully
qualified.public java.lang.String getLookupName()
getLookupName in interface JSCompletionpublic java.lang.String getType(boolean qualified)
getType in interface JSCompletion