Home » openjdk-7 » javax » swing » plaf » basic » [javadoc | source]
javax.swing.plaf.basic
public class: BasicComboBoxEditor [javadoc | source]
java.lang.Object
   javax.swing.plaf.basic.BasicComboBoxEditor

All Implemented Interfaces:
    FocusListener, ComboBoxEditor

Direct Known Subclasses:
    UIResource, SynthComboBoxEditor, UIResource, MetalComboBoxEditor

The default editor for editable combo boxes. The editor is implemented as a JTextField.
Nested Class Summary:
static class  BasicComboBoxEditor.BorderlessTextField   
public static class  BasicComboBoxEditor.UIResource  A subclass of BasicComboBoxEditor that implements UIResource. BasicComboBoxEditor doesn't implement UIResource directly so that applications can safely override the cellRenderer property with BasicListCellRenderer subclasses.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see {@link java.beans.XMLEncoder}. 

Field Summary
protected  JTextField editor     
Constructor:
 public BasicComboBoxEditor() 
Method from javax.swing.plaf.basic.BasicComboBoxEditor Summary:
addActionListener,   createEditorComponent,   focusGained,   focusLost,   getEditorComponent,   getItem,   removeActionListener,   selectAll,   setItem
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.basic.BasicComboBoxEditor Detail:
 public  void addActionListener(ActionListener l) 
 protected JTextField createEditorComponent() 
    Creates the internal editor component. Override this to provide a custom implementation.
 public  void focusGained(FocusEvent e) 
 public  void focusLost(FocusEvent e) 
 public Component getEditorComponent() 
 public Object getItem() 
 public  void removeActionListener(ActionListener l) 
 public  void selectAll() 
 public  void setItem(Object anObject) 
    Sets the item that should be edited.