public static class RoleValidatedField.RolesIntelliHints
extends com.jidesoft.hints.ListDataIntelliHints<java.lang.String>
Constructor and Description |
---|
RolesIntelliHints(javax.swing.text.JTextComponent comp,
java.util.List<java.lang.String> roleList) |
RolesIntelliHints(javax.swing.text.JTextComponent comp,
java.lang.String[] roleArray) |
Modifier and Type | Method and Description |
---|---|
void |
acceptHint(java.lang.Object selected) |
protected boolean |
compare(java.lang.Object context,
java.lang.String o) |
java.lang.String |
getStringRelativeToCaret(java.lang.String contextString)
finds the string relative to the caret position and comma, so the hint will be for
the correct string
|
java.lang.String |
replaceStringRelativeToCaret(java.lang.String replacement,
java.lang.String source)
this method replaces the string in the source text relative to the to where the caret is and where
the commas seperating roles are
|
void |
showHints() |
getCompletionList, isCaseSensitive, setCaseSensitive, setCompletionList, setCompletionList, updateHints
createHintsComponent, createList, getDelegateComponent, getDelegateKeyStrokes, getList, getSelectedHint, setListData, setListData
addShowHintsKeyStroke, createPopup, getAllShowHintsKeyStrokes, getCaretPositionForPopup, getCaretRectangleForPopup, getContext, getIntelliHints, getShowHintsDelay, getShowHintsKeyStroke, getTextComponent, hideHintsPopup, isAutoPopup, isFollowCaret, isHintsPopupVisible, isMultilineTextComponent, removeShowHintsKeyStroke, setAutoPopup, setFollowCaret, setHintsEnabled, setShowHintsDelay, showHintsPopup
public RolesIntelliHints(javax.swing.text.JTextComponent comp, java.lang.String[] roleArray)
public RolesIntelliHints(javax.swing.text.JTextComponent comp, java.util.List<java.lang.String> roleList)
protected boolean compare(java.lang.Object context, java.lang.String o)
compare
in class com.jidesoft.hints.ListDataIntelliHints<java.lang.String>
public java.lang.String getStringRelativeToCaret(java.lang.String contextString)
public java.lang.String replaceStringRelativeToCaret(java.lang.String replacement, java.lang.String source)
public void acceptHint(java.lang.Object selected)
acceptHint
in interface com.jidesoft.hints.IntelliHints
acceptHint
in class com.jidesoft.hints.AbstractIntelliHints
public void showHints()
showHints
in class com.jidesoft.hints.AbstractIntelliHints