javax.swing
Interface ComboBoxEditor

All Known Implementing Classes:
BasicComboBoxEditor sample code for javax.swing.plaf.basic.BasicComboBoxEditor definition code for javax.swing.plaf.basic.BasicComboBoxEditor , BasicComboBoxEditor.UIResource sample code for javax.swing.plaf.basic.BasicComboBoxEditor.UIResource definition code for javax.swing.plaf.basic.BasicComboBoxEditor.UIResource , MetalComboBoxEditor sample code for javax.swing.plaf.metal.MetalComboBoxEditor definition code for javax.swing.plaf.metal.MetalComboBoxEditor , MetalComboBoxEditor.UIResource sample code for javax.swing.plaf.metal.MetalComboBoxEditor.UIResource definition code for javax.swing.plaf.metal.MetalComboBoxEditor.UIResource

public interface ComboBoxEditor

The editor component used for JComboBox components.


Method Summary
 void addActionListener sample code for javax.swing.ComboBoxEditor.addActionListener(java.awt.event.ActionListener) definition code for javax.swing.ComboBoxEditor.addActionListener(java.awt.event.ActionListener) (ActionListener sample code for java.awt.event.ActionListener definition code for java.awt.event.ActionListener  l)
          Add an ActionListener.
 Component sample code for java.awt.Component definition code for java.awt.Component getEditorComponent sample code for javax.swing.ComboBoxEditor.getEditorComponent() definition code for javax.swing.ComboBoxEditor.getEditorComponent() ()
          Return the component that should be added to the tree hierarchy for this editor
 Object sample code for java.lang.Object definition code for java.lang.Object getItem sample code for javax.swing.ComboBoxEditor.getItem() definition code for javax.swing.ComboBoxEditor.getItem() ()
          Return the edited item
 void removeActionListener sample code for javax.swing.ComboBoxEditor.removeActionListener(java.awt.event.ActionListener) definition code for javax.swing.ComboBoxEditor.removeActionListener(java.awt.event.ActionListener) (ActionListener sample code for java.awt.event.ActionListener definition code for java.awt.event.ActionListener  l)
          Remove an ActionListener
 void selectAll sample code for javax.swing.ComboBoxEditor.selectAll() definition code for javax.swing.ComboBoxEditor.selectAll() ()
          Ask the editor to start editing and to select everything
 void setItem sample code for javax.swing.ComboBoxEditor.setItem(java.lang.Object) definition code for javax.swing.ComboBoxEditor.setItem(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  anObject)
          Set the item that should be edited.
 

Method Detail

getEditorComponent sample code for javax.swing.ComboBoxEditor.getEditorComponent() definition code for javax.swing.ComboBoxEditor.getEditorComponent()

Component sample code for java.awt.Component definition code for java.awt.Component  getEditorComponent()
Return the component that should be added to the tree hierarchy for this editor


setItem sample code for javax.swing.ComboBoxEditor.setItem(java.lang.Object) definition code for javax.swing.ComboBoxEditor.setItem(java.lang.Object)

void setItem(Object sample code for java.lang.Object definition code for java.lang.Object  anObject)
Set the item that should be edited. Cancel any editing if necessary


getItem sample code for javax.swing.ComboBoxEditor.getItem() definition code for javax.swing.ComboBoxEditor.getItem()

Object sample code for java.lang.Object definition code for java.lang.Object  getItem()
Return the edited item


selectAll sample code for javax.swing.ComboBoxEditor.selectAll() definition code for javax.swing.ComboBoxEditor.selectAll()

void selectAll()
Ask the editor to start editing and to select everything


addActionListener sample code for javax.swing.ComboBoxEditor.addActionListener(java.awt.event.ActionListener) definition code for javax.swing.ComboBoxEditor.addActionListener(java.awt.event.ActionListener)

void addActionListener(ActionListener sample code for java.awt.event.ActionListener definition code for java.awt.event.ActionListener  l)
Add an ActionListener. An action event is generated when the edited item changes


removeActionListener sample code for javax.swing.ComboBoxEditor.removeActionListener(java.awt.event.ActionListener) definition code for javax.swing.ComboBoxEditor.removeActionListener(java.awt.event.ActionListener)

void removeActionListener(ActionListener sample code for java.awt.event.ActionListener definition code for java.awt.event.ActionListener  l)
Remove an ActionListener