public class SimpleBasicComboBoxEditor extends Object implements ComboBoxEditor, FocusListener
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleBasicComboBoxEditor.UIResource
A subclass of BasicComboBoxEditor that implements UIResource.
|
| Modifier and Type | Field and Description |
|---|---|
protected JTextField |
editor |
| Constructor and Description |
|---|
SimpleBasicComboBoxEditor(StringMapper mapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(ActionListener l) |
protected JTextField |
createEditorComponent()
Creates the internal editor component.
|
void |
focusGained(FocusEvent e) |
void |
focusLost(FocusEvent e) |
Component |
getEditorComponent() |
Object |
getItem() |
void |
removeActionListener(ActionListener l) |
void |
selectAll() |
void |
setItem(Object anObject)
Sets the item that should be edited.
|
protected JTextField editor
public SimpleBasicComboBoxEditor(StringMapper mapper)
public Component getEditorComponent()
getEditorComponent in interface ComboBoxEditorprotected JTextField createEditorComponent()
public void setItem(Object anObject)
setItem in interface ComboBoxEditoranObject - the displayed value of the editorpublic Object getItem()
getItem in interface ComboBoxEditorpublic void selectAll()
selectAll in interface ComboBoxEditorpublic void focusGained(FocusEvent e)
focusGained in interface FocusListenerpublic void focusLost(FocusEvent e)
focusLost in interface FocusListenerpublic void addActionListener(ActionListener l)
addActionListener in interface ComboBoxEditorpublic void removeActionListener(ActionListener l)
removeActionListener in interface ComboBoxEditorCopyright © 2022 vpc open source initiative. All rights reserved.