|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fife.ui.autocomplete.AbstractCompletion
org.fife.ui.autocomplete.MarkupTagCompletion
public class MarkupTagCompletion
A completion representing a tag in markup, such as HTML or XML.
| Constructor Summary | |
|---|---|
MarkupTagCompletion(CompletionProvider provider,
String name)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
addAttributes(StringBuffer sb)
Adds HTML describing the attributes of this tag to a buffer. |
protected void |
addDefinitionString(StringBuffer sb)
|
ParameterizedCompletion.Parameter |
getAttribute(int index)
Returns the specified ParameterizedCompletion.Parameter. |
int |
getAttributeCount()
Returns the number of attributes of this tag. |
String |
getDefinedIn()
Returns where this variable is defined. |
String |
getDescription()
Returns a short description of this variable. |
String |
getName()
Returns the name of this tag. |
String |
getReplacementText()
Returns the text to insert as the result of this auto-completion. |
String |
getSummary()
Returns the description of this auto-complete choice. |
protected void |
possiblyAddDefinedIn(StringBuffer sb)
Adds some HTML describing where this variable is defined, if this information is known. |
protected void |
possiblyAddDescription(StringBuffer sb)
Adds the description text as HTML to a buffer, if a description is defined. |
void |
setAttributes(List attrs)
Sets the attributes of this tag. |
void |
setDefinedIn(String definedIn)
Sets where this variable is defined. |
void |
setDescription(String desc)
Sets the short description of this tag. |
| Methods inherited from class org.fife.ui.autocomplete.AbstractCompletion |
|---|
compareTo, getAlreadyEntered, getInputText, getProvider, getRelevance, getToolTipText, setRelevance, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MarkupTagCompletion(CompletionProvider provider,
String name)
provider - The parent provider instance.name - The name of the tag.| Method Detail |
|---|
protected void addAttributes(StringBuffer sb)
sb - The buffer to append to.protected void addDefinitionString(StringBuffer sb)
public ParameterizedCompletion.Parameter getAttribute(int index)
ParameterizedCompletion.Parameter.
index - The index of the attribute to retrieve.
getAttributeCount()public int getAttributeCount()
getAttribute(int)public String getDefinedIn()
setDefinedIn(String)public String getDescription()
null.setDescription(String)public String getName()
public String getReplacementText()
Completion.getInputText()public String getSummary()
null if there is no description for this
completion.protected void possiblyAddDefinedIn(StringBuffer sb)
sb - The buffer to append to.protected void possiblyAddDescription(StringBuffer sb)
sb - The buffer to append to.public void setDefinedIn(String definedIn)
definedIn - Where this variable is defined.getDefinedIn()public void setDescription(String desc)
desc - A short description of this tag. This may be
null.getDescription()public void setAttributes(List attrs)
attrs - The attributes.getAttribute(int),
getAttributeCount()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||