public class TableSpeedSearch extends SpeedSearchBase<javax.swing.JTable>
SpeedSearchBase.ViewIterator
myComponent
ENTERED_PREFIX_PROPERTY_NAME, SEARCH_QUERY_KEY, SPEED_SEARCH_CURRENT_QUERY
Constructor and Description |
---|
TableSpeedSearch(javax.swing.JTable table) |
TableSpeedSearch(javax.swing.JTable table,
Convertor<java.lang.Object,java.lang.String> toStringConvertor) |
TableSpeedSearch(javax.swing.JTable table,
PairFunction<java.lang.Object,? super Cell,java.lang.String> toStringConvertor) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object [] |
getAllElements() |
protected int |
getElementCount() |
protected java.util.ListIterator<java.lang.Object> |
getElementIterator(int startingIndex) |
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, getEnteredPrefix, getSearchField, hasActiveSpeedSearch, hidePopup, isMatchingElement, isPopupActive, matchingFragments, onSearchFieldUpdated, processKeyEvent, refreshSelection, removeChangeListener, setClearSearchOnNavigateNoMatch, setComparator, showPopup, showPopup
getSupply, getSupply, installSupplyTo
public TableSpeedSearch(javax.swing.JTable table)
public TableSpeedSearch(javax.swing.JTable table, Convertor<java.lang.Object,java.lang.String> toStringConvertor)
public TableSpeedSearch(javax.swing.JTable table, PairFunction<java.lang.Object,? super Cell,java.lang.String> toStringConvertor)
protected boolean isSpeedSearchEnabled()
isSpeedSearchEnabled
in class SpeedSearchBase<javax.swing.JTable>
protected java.util.ListIterator<java.lang.Object> getElementIterator(int startingIndex)
getElementIterator
in class SpeedSearchBase<javax.swing.JTable>
protected int getElementCount()
getElementCount
in class SpeedSearchBase<javax.swing.JTable>
protected void selectElement(java.lang.Object element, java.lang.String selectedText)
selectElement
in class SpeedSearchBase<javax.swing.JTable>
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.JTable>
protected java.lang.Object [] getAllElements()
getAllElements
in class SpeedSearchBase<javax.swing.JTable>
protected java.lang.String getElementText(java.lang.Object element)
getElementText
in class SpeedSearchBase<javax.swing.JTable>