|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JComboBox | +--org.arch4j.ui.components.SearchComboBox
This combo box adds type-ahead searching for Cell Rendering combo boxes. It also includes a fix to the Metal Look and Feel focus events getting lost problem. NOTE: Cell renderers must implement the TextCellRenderer interface.
TextCellRenderer.
,
Serialized FormField Summary |
Fields inherited from class javax.swing.JComboBox |
actionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminder |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
SearchComboBox()
Overridden to provide the constructor. |
|
SearchComboBox(ComboBoxModel aModel)
Overridden to provide the constructor. |
|
SearchComboBox(Object[] anArray)
Overridden to provide the constructor. |
|
SearchComboBox(Vector items)
Overridden to provide the constructor. |
Method Summary | |
void |
addFocusListener(FocusListener l)
Overridden to handle the metal look and feel. |
protected JComboBox.KeySelectionManager |
createDefaultKeySelectionManager()
Overridden to hook in our key selection manager that can handle cell renderers. |
void |
removeFocusListener(FocusListener l)
Overridden to handle the metal look and feel. |
void |
updateUI()
Overridden to re-connect focus listeners to the button if using the Metal look and feel. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SearchComboBox(Object[] anArray)
JComboBox
public SearchComboBox(ComboBoxModel aModel)
JComboBox
public SearchComboBox(Vector items)
JComboBox
public SearchComboBox()
JComboBox
Method Detail |
public void addFocusListener(FocusListener l)
addFocusListener
in class Component
Component.addFocusListener(FocusListener)
public void removeFocusListener(FocusListener l)
removeFocusListener
in class Component
Component.removeFocusListener(FocusListener)
public void updateUI()
updateUI
in class JComboBox
JComponent.updateUI()
protected JComboBox.KeySelectionManager createDefaultKeySelectionManager()
createDefaultKeySelectionManager
in class JComboBox
JComboBox.createDefaultKeySelectionManager()
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |