public abstract class TableViewSpeedSearch<Item> extends SpeedSearchBase<TableView<Item>>
SpeedSearchBase.ViewIterator
myComponent
ENTERED_PREFIX_PROPERTY_NAME, SEARCH_QUERY_KEY, SPEED_SEARCH_CURRENT_QUERY
Constructor and Description |
---|
TableViewSpeedSearch(TableView<Item> component) |
Modifier and Type | Method and Description |
---|---|
protected int |
convertIndexToModel(int viewIndex)
Should convert given view index to model index
|
protected java.lang.Object [] |
getAllElements() |
protected java.lang.String |
getElementText(java.lang.Object element) |
protected abstract java.lang.String |
getItemText(Item element) |
protected int |
getSelectedIndex()
Returns visual (view) selection index.
|
protected void |
selectElement(java.lang.Object element,
java.lang.String selectedText) |
addChangeListener, adjustSelection, compare, 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 int getSelectedIndex()
SpeedSearchBase
getSelectedIndex
in class SpeedSearchBase<TableView<Item>>
protected int convertIndexToModel(int viewIndex)
SpeedSearchBase
convertIndexToModel
in class SpeedSearchBase<TableView<Item>>
protected java.lang.Object [] getAllElements()
getAllElements
in class SpeedSearchBase<TableView<Item>>
protected java.lang.String getElementText(java.lang.Object element)
getElementText
in class SpeedSearchBase<TableView<Item>>
protected abstract java.lang.String getItemText(Item element)
protected void selectElement(java.lang.Object element, java.lang.String selectedText)
selectElement
in class SpeedSearchBase<TableView<Item>>
element
- Element to select. Don't forget to convert model index to view index if needed (i.e. table.convertRowIndexToView(modelIndex), etc).selectedText
- search text