public class ComboboxSpeedSearch extends SpeedSearchBase<javax.swing.JComboBox>
SpeedSearchBase.ViewIterator
myComponent
ENTERED_PREFIX_PROPERTY_NAME, SEARCH_QUERY_KEY, SPEED_SEARCH_CURRENT_QUERY
Constructor and Description |
---|
ComboboxSpeedSearch(javax.swing.JComboBox comboBox) |
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 void selectElement(java.lang.Object element, java.lang.String selectedText)
selectElement
in class SpeedSearchBase<javax.swing.JComboBox>
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.JComboBox>
protected java.lang.Object [] getAllElements()
getAllElements
in class SpeedSearchBase<javax.swing.JComboBox>
protected java.lang.String getElementText(java.lang.Object element)
getElementText
in class SpeedSearchBase<javax.swing.JComboBox>