public class MarkupTagCompletion extends AbstractCompletion
构造器和说明 |
---|
MarkupTagCompletion(CompletionProvider provider,
java.lang.String name)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
addAttributes(java.lang.StringBuilder sb)
Adds HTML describing the attributes of this tag to a buffer.
|
protected void |
addDefinitionString(java.lang.StringBuilder sb) |
ParameterizedCompletion.Parameter |
getAttribute(int index)
Returns the specified
ParameterizedCompletion.Parameter . |
int |
getAttributeCount()
Returns the number of attributes of this tag.
|
java.util.List<ParameterizedCompletion.Parameter> |
getAttributes()
Returns all attributes of this tag.
|
java.lang.String |
getDefinedIn()
Returns where this variable is defined.
|
java.lang.String |
getDescription()
Returns a short description of this variable.
|
java.lang.String |
getName()
Returns the name of this tag.
|
java.lang.String |
getReplacementText()
Returns the text to insert as the result of this auto-completion.
|
java.lang.String |
getSummary()
Returns the description of this auto-complete choice.
|
protected void |
possiblyAddDefinedIn(java.lang.StringBuilder sb)
Adds some HTML describing where this variable is defined, if this
information is known.
|
protected void |
possiblyAddDescription(java.lang.StringBuilder sb)
Adds the description text as HTML to a buffer, if a description is
defined.
|
void |
setAttributes(java.util.List<? extends ParameterizedCompletion.Parameter> attrs)
Sets the attributes of this tag.
|
void |
setDefinedIn(java.lang.String definedIn)
Sets where this variable is defined.
|
void |
setDescription(java.lang.String desc)
Sets the short description of this tag.
|
compareTo, getAlreadyEntered, getIcon, getInputText, getProvider, getRelevance, getToolTipText, setRelevance, toString
public MarkupTagCompletion(CompletionProvider provider, java.lang.String name)
provider
- The parent provider instance.name
- The name of the tag.protected void addAttributes(java.lang.StringBuilder sb)
sb
- The buffer to append to.protected void addDefinitionString(java.lang.StringBuilder sb)
public java.util.List<ParameterizedCompletion.Parameter> getAttributes()
ParameterizedCompletion.Parameter
s.getAttribute(int)
,
getAttributeCount()
public ParameterizedCompletion.Parameter getAttribute(int index)
ParameterizedCompletion.Parameter
.index
- The index of the attribute to retrieve.getAttributeCount()
public int getAttributeCount()
getAttribute(int)
public java.lang.String getDefinedIn()
setDefinedIn(String)
public java.lang.String getDescription()
null
.setDescription(String)
public java.lang.String getName()
public java.lang.String getReplacementText()
Completion.getInputText()
public java.lang.String getSummary()
null
if there is no description for this
completion.protected void possiblyAddDefinedIn(java.lang.StringBuilder sb)
sb
- The buffer to append to.protected void possiblyAddDescription(java.lang.StringBuilder sb)
sb
- The buffer to append to.public void setDefinedIn(java.lang.String definedIn)
definedIn
- Where this variable is defined.getDefinedIn()
public void setDescription(java.lang.String desc)
desc
- A short description of this tag. This may be
null
.getDescription()
public void setAttributes(java.util.List<? extends ParameterizedCompletion.Parameter> attrs)
attrs
- The attributes.getAttribute(int)
,
getAttributeCount()