public class HtmlCompletionProvider extends org.fife.ui.autocomplete.DefaultCompletionProvider
org.fife.ui.autocomplete.AbstractCompletionProvider.CaseInsensitiveComparatorsegcomparator, completionsEMPTY_STRING| 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<org.fife.ui.autocomplete.Completion> |
getCompletionsImpl(javax.swing.text.JTextComponent comp) |
protected java.util.List<org.fife.ui.autocomplete.Completion> |
getTagCompletions()
Returns the completions for the basic tag set.
|
protected void |
initCompletions()
Calls
DefaultCompletionProvider.loadFromXML(String) to load all standard HTML
completions. |
boolean |
isAutoActivateOkay(javax.swing.text.JTextComponent tc)
Overridden to ensure auto-activation only occurs in a markup tag.
|
protected boolean |
isAutoActivateOkayOutsideOfMarkup(javax.swing.text.JTextComponent tc)
Returns the base implementation - basically checking that the
caret comes immediately after letters.
|
getCompletionsAt, getParameterizedCompletions, init, isValidChar, loadFromXML, loadFromXML, loadFromXML, loadFromXMLaddCompletion, addCompletions, addWordCompletions, checkProviderAndAdd, clear, getCompletionByInputText, removeCompletionclearParameterizedCompletionParams, getCompletions, getListCellRenderer, getParameterChoicesProvider, getParameterListEnd, getParameterListSeparator, getParameterListStart, getParent, setAutoActivationRules, setListCellRenderer, setParameterChoicesProvider, setParameterizedCompletionParams, setParentprotected 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)
getAlreadyEnteredText in interface org.fife.ui.autocomplete.CompletionProvidergetAlreadyEnteredText in class org.fife.ui.autocomplete.DefaultCompletionProviderprotected 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<org.fife.ui.autocomplete.Completion> getCompletionsImpl(javax.swing.text.JTextComponent comp)
getCompletionsImpl in class org.fife.ui.autocomplete.AbstractCompletionProviderprotected java.util.List<org.fife.ui.autocomplete.Completion> getTagCompletions()
protected void initCompletions()
DefaultCompletionProvider.loadFromXML(String) to load all standard HTML
completions. Subclasses can override to also load additional standard
tags (i.e. JSP's jsp:* tags).protected boolean isAutoActivateOkayOutsideOfMarkup(javax.swing.text.JTextComponent tc)
tc - The text component.isAutoActivateOkay(JTextComponent)public boolean isAutoActivateOkay(javax.swing.text.JTextComponent tc)
isAutoActivateOkay in interface org.fife.ui.autocomplete.CompletionProviderisAutoActivateOkay in class org.fife.ui.autocomplete.CompletionProviderBaseisAutoActivateOkayOutsideOfMarkup(JTextComponent)