public interface

ComboBoxEditor

javax.swing.ComboBoxEditor
Known Indirect Subclasses

Class Overview

The editor component used for JComboBox components.

Summary

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

Public Methods

public abstract void addActionListener (ActionListener l)

Add an ActionListener. An action event is generated when the edited item changes

public abstract Component getEditorComponent ()

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

public abstract Object getItem ()

Return the edited item

public abstract void removeActionListener (ActionListener l)

Remove an ActionListener

public abstract void selectAll ()

Ask the editor to start editing and to select everything

public abstract void setItem (Object anObject)

Set the item that should be edited. Cancel any editing if necessary