|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object![]()
![]()
![]()
javax.swing.plaf.basic.BasicComboBoxEditor
, EventListener
, ComboBoxEditor

, MetalComboBoxEditor

public class BasicComboBoxEditor

, FocusListener

The default editor for editable combo boxes. The editor is implemented as a JTextField.
| Nested 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
Add an ActionListener. |
void |
focusGained
Invoked when a component gains the keyboard focus. |
void |
focusLost
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
Remove an ActionListener |
void |
selectAll
Ask the editor to start editing and to select everything |
void |
setItem
Sets the item that should be edited. |
Methods inherited from class java.lang.Object ![]() |
|---|
clone |
| Field Detail |
|---|

protected JTextField![]()
![]()
editor
| Constructor Detail |
|---|

public BasicComboBoxEditor()
| Method Detail |
|---|

public Component![]()
![]()
getEditorComponent()
ComboBoxEditor

getEditorComponent

in interface ComboBoxEditor


public void setItem(Object![]()
![]()
anObject)
setItem

in interface ComboBoxEditor

anObject - the displayed value of the editor

public Object![]()
![]()
getItem()
ComboBoxEditor

getItem

in interface ComboBoxEditor


public void selectAll()
ComboBoxEditor

selectAll

in interface ComboBoxEditor


public void focusGained(FocusEvent![]()
![]()
e)
FocusListener

focusGained

in interface FocusListener


public void focusLost(FocusEvent![]()
![]()
e)
FocusListener

focusLost

in interface FocusListener


public void addActionListener(ActionListener![]()
![]()
l)
ComboBoxEditor

addActionListener

in interface ComboBoxEditor


public void removeActionListener(ActionListener![]()
![]()
l)
ComboBoxEditor

removeActionListener

in interface ComboBoxEditor

|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||