public class TreeTableSpeedSearch extends SpeedSearchBase<TreeTable>
SpeedSearchBase.ViewIterator
myComponent
ENTERED_PREFIX_PROPERTY_NAME, SEARCH_QUERY_KEY, SPEED_SEARCH_CURRENT_QUERY
Constructor and Description |
---|
TreeTableSpeedSearch(TreeTable tree) |
TreeTableSpeedSearch(TreeTable tree,
Convertor<? super javax.swing.tree.TreePath,java.lang.String> toStringConvertor) |
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 boolean |
isSpeedSearchEnabled() |
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, matchingFragments, onSearchFieldUpdated, processKeyEvent, refreshSelection, removeChangeListener, setClearSearchOnNavigateNoMatch, setComparator, showPopup, showPopup
getSupply, getSupply, installSupplyTo
public TreeTableSpeedSearch(TreeTable tree, Convertor<? super javax.swing.tree.TreePath,java.lang.String> toStringConvertor)
public TreeTableSpeedSearch(TreeTable tree)
protected boolean isSpeedSearchEnabled()
isSpeedSearchEnabled
in class SpeedSearchBase<TreeTable>
protected void selectElement(java.lang.Object element, java.lang.String selectedText)
selectElement
in class SpeedSearchBase<TreeTable>
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<TreeTable>
protected java.lang.Object [] getAllElements()
getAllElements
in class SpeedSearchBase<TreeTable>
protected java.lang.String getElementText(java.lang.Object element)
getElementText
in class SpeedSearchBase<TreeTable>