public class BasicComboBoxEditor extends Objectimplements ComboBoxEditor , FocusListener
| Modifier and Type | Class and Description |
|---|---|
static class |
BasicComboBoxEditor
A subclass of BasicComboBoxEditor that implements UIResource.
|
| Modifier and Type | Field and Description |
|---|---|
protected JTextField |
editor
|
| Constructor and Description |
|---|
BasicComboBoxEditor()
|
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(ActionListener
Add an ActionListener.
|
protected JTextField |
createEditorComponent()
Creates the internal editor component.
|
void |
focusGained(FocusEvent
Invoked when a component gains the keyboard focus.
|
void |
focusLost(FocusEvent
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
Remove an ActionListener
|
void |
selectAll()
Ask the editor to start editing and to select everything
|
void |
setItem(Object
Sets the item that should be edited.
|
protected JTextFieldeditor
public ComponentgetEditorComponent()
ComboBoxEditor
protected JTextFieldcreateEditorComponent()
public void setItem(ObjectanObject)
setItem in interface
ComboBoxEditor
anObject - the displayed value of the editor
public ObjectgetItem()
ComboBoxEditor
public void selectAll()
ComboBoxEditor
public void focusGained(FocusEvente)
FocusListener
public void focusLost(FocusEvente)
FocusListener
public void addActionListener(ActionListenerl)
ComboBoxEditor
public void removeActionListener(ActionListenerl)
ComboBoxEditor