java.lang.Objectjavax.swing.plaf.basic.BasicComboBoxEditor
public class BasicComboBoxEditor
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
(
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) Sets 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()
protected
JTextField
createEditorComponent
()
public void setItem(Object anObject)
public Object getItem()
public void selectAll()
public void focusGained(FocusEvent e)
public void focusLost(FocusEvent e)
public void addActionListener(ActionListener l)
public void removeActionListener(ActionListener l)