JSR-209 (Final Release)

javax.swing
Interface ComboBoxEditor


public interface ComboBoxEditor

The editor component used for JComboBox components.


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

Method Detail

getEditorComponent

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


setItem

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


getItem

public java.lang.Object getItem()
Return the edited item


selectAll

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


addActionListener

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


removeActionListener

public void removeActionListener(java.awt.event.ActionListener l)
Remove an ActionListener


JSR-209 (Final Release)

Java and Java 2D are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
Copyright 1993 - 2006 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All Rights Reserved.
Use of this specification is subject to this license.