|
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 Form| Field 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)
JComboBoxpublic SearchComboBox(ComboBoxModel aModel)
JComboBoxpublic SearchComboBox(Vector items)
JComboBoxpublic SearchComboBox()
JComboBox| Method Detail |
public void addFocusListener(FocusListener l)
addFocusListener in class ComponentComponent.addFocusListener(FocusListener)public void removeFocusListener(FocusListener l)
removeFocusListener in class ComponentComponent.removeFocusListener(FocusListener)public void updateUI()
updateUI in class JComboBoxJComponent.updateUI()protected JComboBox.KeySelectionManager createDefaultKeySelectionManager()
createDefaultKeySelectionManager in class JComboBoxJComboBox.createDefaultKeySelectionManager()
|
Arch4J 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||