public class PropertyValueCompletionProvider extends org.fife.ui.autocomplete.CompletionProviderBase
| Modifier and Type | Class and Description |
|---|---|
protected static class |
PropertyValueCompletionProvider.LexerState
A simple enum to keep track of what "state" we're in at a specific
location in a CSS file.
|
EMPTY_STRING| Constructor and Description |
|---|
PropertyValueCompletionProvider(boolean isLess) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addLessCompletions(java.util.List<org.fife.ui.autocomplete.Completion> completions,
PropertyValueCompletionProvider.LexerState state,
javax.swing.text.JTextComponent comp,
java.lang.String alreadyEntered)
Adds completions specific to Less.
|
java.lang.String |
getAlreadyEnteredText(javax.swing.text.JTextComponent comp) |
java.util.List<org.fife.ui.autocomplete.Completion> |
getCompletionsAt(javax.swing.text.JTextComponent comp,
java.awt.Point p) |
protected java.util.List<org.fife.ui.autocomplete.Completion> |
getCompletionsImpl(javax.swing.text.JTextComponent comp) |
java.util.List<org.fife.ui.autocomplete.ParameterizedCompletion> |
getParameterizedCompletions(javax.swing.text.JTextComponent tc) |
boolean |
isAutoActivateOkay(javax.swing.text.JTextComponent tc) |
boolean |
isValidChar(char ch)
Returns whether a character is valid in a property value.
|
protected java.util.List<org.fife.ui.autocomplete.Completion> |
loadFromXML(java.lang.String resource)
Loads completions from an XML file.
|
clearParameterizedCompletionParams, getCompletions, getListCellRenderer, getParameterChoicesProvider, getParameterListEnd, getParameterListSeparator, getParameterListStart, getParent, setAutoActivationRules, setListCellRenderer, setParameterChoicesProvider, setParameterizedCompletionParams, setParentpublic PropertyValueCompletionProvider(boolean isLess)
public java.lang.String getAlreadyEnteredText(javax.swing.text.JTextComponent comp)
public java.util.List<org.fife.ui.autocomplete.Completion> getCompletionsAt(javax.swing.text.JTextComponent comp, java.awt.Point p)
public java.util.List<org.fife.ui.autocomplete.ParameterizedCompletion> getParameterizedCompletions(javax.swing.text.JTextComponent tc)
protected java.util.List<org.fife.ui.autocomplete.Completion> getCompletionsImpl(javax.swing.text.JTextComponent comp)
getCompletionsImpl in class org.fife.ui.autocomplete.CompletionProviderBaseprotected boolean addLessCompletions(java.util.List<org.fife.ui.autocomplete.Completion> completions, PropertyValueCompletionProvider.LexerState state, javax.swing.text.JTextComponent comp, java.lang.String alreadyEntered)
completions - The completion set to add to.state - The current lexer state.comp - The text component whose content is being parsed.alreadyEntered - The text already entered by the user.public boolean isAutoActivateOkay(javax.swing.text.JTextComponent tc)
isAutoActivateOkay in interface org.fife.ui.autocomplete.CompletionProviderisAutoActivateOkay in class org.fife.ui.autocomplete.CompletionProviderBasepublic boolean isValidChar(char ch)
ch - The character.protected java.util.List<org.fife.ui.autocomplete.Completion> loadFromXML(java.lang.String resource) throws java.io.IOException
CompletionXml.dtd.resource - A resource the current ClassLoader can get to.java.io.IOException - If an IO error occurs.