public class HtmlCompletionProvider
extends DefaultCompletionProvider
| Constructor and Description |
|---|
HtmlCompletionProvider()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
defaultGetAlreadyEnteredText(javax.swing.text.JTextComponent comp)
This nasty hack is just a hook for subclasses (e.g.
|
java.lang.String |
getAlreadyEnteredText(javax.swing.text.JTextComponent comp) |
protected java.util.List<AttributeCompletion> |
getAttributeCompletionsForTag(java.lang.String tagName)
Returns the attributes that can be code-completed for the specified
tag.
|
protected java.util.List<Completion> |
getCompletionsImpl(javax.swing.text.JTextComponent comp) |
protected java.util.List<Completion> |
getTagCompletions()
Returns the completions for the basic tag set.
|
protected void |
initCompletions()
Calls
#loadFromXML(String) to load all standard HTML
completions. |
boolean |
isAutoActivateOkay(javax.swing.text.JTextComponent tc) |
protected java.lang.String defaultGetAlreadyEnteredText(javax.swing.text.JTextComponent comp)
PhpCompletionProvider) to be able to get at the
DefaultCompletionProvider implementation.comp - The text component.null if none.public java.lang.String getAlreadyEnteredText(javax.swing.text.JTextComponent comp)
protected java.util.List<AttributeCompletion> getAttributeCompletionsForTag(java.lang.String tagName)
tagName - The tag whose attributes are being code-completed.null if the tag is not
recognized.protected java.util.List<Completion> getCompletionsImpl(javax.swing.text.JTextComponent comp)
protected java.util.List<Completion> getTagCompletions()
protected void initCompletions()
#loadFromXML(String) to load all standard HTML
completions. Subclasses can override to also load additional standard
tags (i.e. JSP's jsp:* tags).public boolean isAutoActivateOkay(javax.swing.text.JTextComponent tc)