JIDE 3.5.15

com.jidesoft.combobox
Class ExComboBoxSearchable

java.lang.Object
  extended by com.jidesoft.swing.Searchable
      extended by com.jidesoft.swing.ComboBoxSearchable
          extended by com.jidesoft.combobox.ExComboBoxSearchable
All Implemented Interfaces:
PropertyChangeListener, EventListener, ListDataListener, PopupMenuListener
Direct Known Subclasses:
ListExComboBoxSearchable, TableExComboBoxSearchable, TreeExComboBoxSearchable

public abstract class ExComboBoxSearchable
extends ComboBoxSearchable

Abstract Searchable for ExComboBoxes, provides the convertElementToString method and reset the popup if the combobox model changes


Nested Class Summary
 
Nested classes/interfaces inherited from class com.jidesoft.swing.Searchable
Searchable.SearchField, Searchable.SearchPopup
 
Field Summary
 
Fields inherited from class com.jidesoft.swing.Searchable
_component, _componentListener, _focusListener, _keyListener, _matchCount, CLIENT_PROPERTY_SEARCHABLE, listenerList, PROPERTY_SEARCH_TEXT
 
Constructor Summary
ExComboBoxSearchable(ExComboBox comboBox)
           
 
Method Summary
protected  String convertElementToString(Object object)
          Converts the element in to a string using the ExComboBox's Converter and ConverterContex.
protected  ExComboBox getComboBox()
           
 void popupMenuWillBecomeInvisible(PopupMenuEvent e)
           
 
Methods inherited from class com.jidesoft.swing.ComboBoxSearchable
contentsChanged, getElementAt, getElementCount, getSelectedIndex, intervalAdded, intervalRemoved, isRefreshPopupDuringSearching, isShowPopupDuringSearching, popupMenuCanceled, popupMenuWillBecomeVisible, propertyChange, setRefreshPopupDuringSearching, setSelectedIndex, setShowPopupDuringSearching, uninstallListeners
 
Methods inherited from class com.jidesoft.swing.Searchable
addPropertyChangeListener, addSearchableListener, adjustSelectedIndex, cancelHighlightAll, compare, compare, convertToString, createComponentListener, createFocusListener, createKeyListener, createSearchPopup, findAll, findFirst, findFromCursor, findLast, findNext, findPrevious, firePropertyChangeEvent, fireSearchableEvent, getBackground, getComponent, getCurrentIndex, getCursor, getElementAtAsString, getForeground, getMismatchForeground, getPopupLocation, getPopupLocationRelativeTo, getPopupTimeout, getResourceString, getSearchable, getSearchableListeners, getSearchableProvider, getSearchingDelay, getSearchingText, getSearchLabel, getWildcardSupport, hidePopup, highlightAll, installListeners, isActivateKey, isCaseSensitive, isCountMatch, isDeactivateKey, isFindFirstKey, isFindLastKey, isFindNextKey, isFindPreviousKey, isFromStart, isHeavyweightComponentEnabled, isHideSearchPopupOnEvent, isIncrementalSelectKey, isNavigationKey, isPopupVisible, isProcessModelChangeEvent, isRepeats, isReverseOrder, isSearchableListenerInstalled, isSelectAllKey, isWildcardEnabled, keyTypedOrPressed, removePropertyChangeListener, removeSearchableListener, reverseFindFromCursor, searchingTextEmpty, select, setBackground, setCaseSensitive, setCountMatch, setCursor, setCursor, setForeground, setFromStart, setHeavyweightComponentEnabled, setHideSearchPopupOnEvent, setMismatchForeground, setPopupLocation, setPopupLocationRelativeTo, setPopupTimeout, setProcessModelChangeEvent, setRepeats, setReverseOrder, setSearchableProvider, setSearchingDelay, setSearchLabel, setWildcardEnabled, setWildcardSupport, showPopup, textChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExComboBoxSearchable

public ExComboBoxSearchable(ExComboBox comboBox)
Method Detail

getComboBox

protected ExComboBox getComboBox()

convertElementToString

protected String convertElementToString(Object object)
Converts the element in to a string using the ExComboBox's Converter and ConverterContex. If the Converter is null, the object's toString() method is used, or an empty string is returned if the object is null.

Overrides:
convertElementToString in class ComboBoxSearchable
Parameters:
object - the object to be converted
Returns:
Returns the string representing the element.

popupMenuWillBecomeInvisible

public void popupMenuWillBecomeInvisible(PopupMenuEvent e)
Specified by:
popupMenuWillBecomeInvisible in interface PopupMenuListener
Overrides:
popupMenuWillBecomeInvisible in class ComboBoxSearchable

JIDE 3.5.15