|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--javax.swing.plaf.basic.BasicComboBoxEditor
The default editor for editable combo boxes
| Inner Class Summary | |
static class |
BasicComboBoxEditor.UIResource
A subclass of BasicComboBoxEditor that implements UIResource. |
| Field Summary | |
protected JTextField |
editor
|
| Constructor Summary | |
BasicComboBoxEditor()
|
|
| Method Summary | |
void |
addActionListener(ActionListener l)
Add an ActionListener. |
void |
focusGained(FocusEvent e)
Invoked when a component gains the keyboard focus. |
void |
focusLost(FocusEvent e)
Invoked when a component loses the keyboard focus. |
Component |
getEditorComponent()
Return the component that should be added to the tree hierarchy for this editor |
Object |
getItem()
Return the edited item |
void |
removeActionListener(ActionListener l)
Remove an ActionListener |
void |
selectAll()
Ask the editor to start editing and to select everything |
void |
setItem(Object anObject)
Set the item that should be edited. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected JTextField editor
| Constructor Detail |
public BasicComboBoxEditor()
| Method Detail |
public Component getEditorComponent()
ComboBoxEditorgetEditorComponent in interface ComboBoxEditorpublic void setItem(Object anObject)
ComboBoxEditorsetItem in interface ComboBoxEditorpublic Object getItem()
ComboBoxEditorgetItem in interface ComboBoxEditorpublic void selectAll()
ComboBoxEditorselectAll in interface ComboBoxEditorpublic void focusGained(FocusEvent e)
FocusListenerfocusGained in interface FocusListenerpublic void focusLost(FocusEvent e)
FocusListenerfocusLost in interface FocusListenerpublic void addActionListener(ActionListener l)
ComboBoxEditoraddActionListener in interface ComboBoxEditorpublic void removeActionListener(ActionListener l)
ComboBoxEditorremoveActionListener in interface ComboBoxEditor
|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.