This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.swing
interface ComboBoxEditor

All Known Implementing Classes:
BasicComboBoxEditor, BasicComboBoxEditor.UIResource, MetalComboBoxEditor, MetalComboBoxEditor.UIResource

Most common way to construct:

JComboBox combo = …;

ComboBoxEditor comboBoxEditor = combo.getEditor();

Based on 12 examples


public interface ComboBoxEditor

The editor component used for JComboBox components.


Method Summary
 void

          Add an ActionListener.
 Component

          Return the component that should be added to the tree hierarchy for this editor
 Object

          Return the edited item
 void

          Remove an ActionListener
 void

          Ask the editor to start editing and to select everything
 void
setItem(Object anObject)

          Set the item that should be edited.
 

Method Detail

addActionListener

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

Parameters:
l

getEditorComponent

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


getItem

public Object getItem()
Return the edited item


removeActionListener

public void removeActionListener(ActionListener l)
Remove an ActionListener

Parameters:
l

selectAll

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


setItem

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

Parameters:
anObject


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.