public class TreeSpeedSearch extends SpeedSearchBase<javax.swing.JTree>
SpeedSearchBase.ViewIterator
Modifier and Type | Field and Description |
---|---|
protected boolean |
myCanExpand |
static Convertor<javax.swing.tree.TreePath,java.lang.String> |
NODE_DESCRIPTOR_TOSTRING |
myComponent
ENTERED_PREFIX_PROPERTY_NAME, SEARCH_QUERY_KEY, SPEED_SEARCH_CURRENT_QUERY
Constructor and Description |
---|
TreeSpeedSearch(javax.swing.JTree tree) |
TreeSpeedSearch(javax.swing.JTree tree,
Convertor<? super javax.swing.tree.TreePath,java.lang.String> toStringConvertor) |
TreeSpeedSearch(javax.swing.JTree tree,
Convertor<? super javax.swing.tree.TreePath,java.lang.String> toString,
boolean canExpand) |
TreeSpeedSearch(Tree tree,
Convertor<? super javax.swing.tree.TreePath,java.lang.String> toString) |
TreeSpeedSearch(Tree tree,
Convertor<? super javax.swing.tree.TreePath,java.lang.String> toString,
boolean canExpand) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object [] |
getAllElements() |
protected java.lang.String |
getElementText(java.lang.Object element) |
protected int |
getSelectedIndex()
Returns visual (view) selection index.
|
protected void |
selectElement(java.lang.Object element,
java.lang.String selectedText) |
addChangeListener, adjustSelection, compare, convertIndexToModel, findAndSelectElement, findElement, getComparator, getComponent, getComponentLocationOnScreen, getComponentVisibleRect, getElementCount, getElementIterator, getEnteredPrefix, getSearchField, hasActiveSpeedSearch, hidePopup, isMatchingElement, isPopupActive, isSpeedSearchEnabled, matchingFragments, onSearchFieldUpdated, processKeyEvent, refreshSelection, removeChangeListener, setClearSearchOnNavigateNoMatch, setComparator, showPopup, showPopup
getSupply, getSupply, installSupplyTo
protected boolean myCanExpand
public static final Convertor<javax.swing.tree.TreePath,java.lang.String> NODE_DESCRIPTOR_TOSTRING
public TreeSpeedSearch(javax.swing.JTree tree, Convertor<? super javax.swing.tree.TreePath,java.lang.String> toStringConvertor)
public TreeSpeedSearch(javax.swing.JTree tree)
public TreeSpeedSearch(Tree tree, Convertor<? super javax.swing.tree.TreePath,java.lang.String> toString)
public TreeSpeedSearch(Tree tree, Convertor<? super javax.swing.tree.TreePath,java.lang.String> toString, boolean canExpand)
public TreeSpeedSearch(javax.swing.JTree tree, Convertor<? super javax.swing.tree.TreePath,java.lang.String> toString, boolean canExpand)
protected void selectElement(java.lang.Object element, java.lang.String selectedText)
selectElement
in class SpeedSearchBase<javax.swing.JTree>
element
- Element to select. Don't forget to convert model index to view index if needed (i.e. table.convertRowIndexToView(modelIndex), etc).selectedText
- search textprotected int getSelectedIndex()
SpeedSearchBase
getSelectedIndex
in class SpeedSearchBase<javax.swing.JTree>
protected java.lang.Object [] getAllElements()
getAllElements
in class SpeedSearchBase<javax.swing.JTree>
protected java.lang.String getElementText(java.lang.Object element)
getElementText
in class SpeedSearchBase<javax.swing.JTree>