|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.editor.AbstractCodeEditorIntelliHints com.jidesoft.editor.AbstractListCodeEditorIntelliHints com.jidesoft.editor.ListDataCodeEditorIntelliHints<T>
public class ListDataCodeEditorIntelliHints<T>
ListDataCodeEditorIntelliHints
is a concrete implementation of IntelliHints
. It
provides hints from a known list of data. It is similar to auto complete text field except the list will be filtered
depending on what user types in so far.
Field Summary |
---|
Fields inherited from class com.jidesoft.editor.AbstractListCodeEditorIntelliHints |
---|
_keyStrokes |
Fields inherited from interface com.jidesoft.hints.IntelliHints |
---|
CLIENT_PROPERTY_INTELLI_HINTS |
Constructor Summary | |
---|---|
ListDataCodeEditorIntelliHints(CodeEditor codeEditor,
List<T> completionList)
Constructor. |
|
ListDataCodeEditorIntelliHints(CodeEditor codeEditor,
T[] completionList)
Constructor. |
Method Summary | |
---|---|
protected boolean |
compare(Object context,
T o)
Compares the context with the object in the completion list. |
List<T> |
getCompletionList()
Gets the list of hints. |
boolean |
isCaseSensitive()
Checks if it used case sensitive search. |
void |
setCaseSensitive(boolean caseSensitive)
Sets the case sensitive flag. |
void |
setCompletionList(List<T> completionList)
Sets a new list of hints. |
void |
setCompletionList(T[] completionList)
Sets a new list of hints. |
boolean |
updateHints(Object context)
Update hints depending on the context. |
Methods inherited from class com.jidesoft.editor.AbstractListCodeEditorIntelliHints |
---|
createHintsComponent, createList, getDelegateComponent, getDelegateKeyStrokes, getList, getMinimumPopupWidth, getSelectedHint, setListData, setListData, setMinimumPopupWidth |
Methods inherited from class com.jidesoft.editor.AbstractCodeEditorIntelliHints |
---|
acceptHint, addShowHintsKeyStroke, createPopup, getAllShowHintsKeyStrokes, getCaretRectangleForPopup, getCodeEditor, getContext, getDelimiters, getIntelliHints, getShowHintsKeyStroke, hideHintsPopup, install, isAutoPopup, isHintsPopupVisible, removeShowHintsKeyStroke, setAutoPopup, setDelimiters, setHintsEnabled, showHintsPopup, uninstall |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListDataCodeEditorIntelliHints(CodeEditor codeEditor, List<T> completionList)
codeEditor
- the CodeEditorcompletionList
- the list to be usedpublic ListDataCodeEditorIntelliHints(CodeEditor codeEditor, T[] completionList)
codeEditor
- the CodeEditorcompletionList
- the list to be usedMethod Detail |
---|
public List<T> getCompletionList()
public void setCompletionList(List<T> completionList)
completionList
- a new list of hints.public void setCompletionList(T[] completionList)
completionList
- a new array of hints.public boolean updateHints(Object context)
IntelliHints
context
- the current context
protected boolean compare(Object context, T o)
context
- the context returned from AbstractCodeEditorIntelliHints.getContext()
method.o
- the object in the completion list.
public boolean isCaseSensitive()
setCaseSensitive(boolean)
public void setCaseSensitive(boolean caseSensitive)
caseSensitive
- true or false.
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |