APIdia Launch Partner
Top Description Methods
javax.swing

public Interface ComboBoxEditor

Known Direct Implementers
javax.swing.plaf.basic.BasicComboBoxEditor
Imports
java.awt.*, java.awt.event.*

The editor component used for JComboBox components.
Author
Arnaud Weber
Since
1.2

Method Summary

Modifier and TypeMethod and Description
public void
addActionListener(ActionListener
an ActionListener
l
)

Add an ActionListener.

public Component

Returns:

the component
getEditorComponent
()

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

public Object

Returns:

the edited item
getItem
()

Returns the edited item

public void
removeActionListener(ActionListener
an ActionListener
l
)

Remove an ActionListener

public void
selectAll()

Ask the editor to start editing and to select everything

public void
setItem(Object
an item
anObject
)

Set the item that should be edited.

Method Detail

addActionListenerback to summary
public void addActionListener(ActionListener l)

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

Parameters
l:ActionListener

an ActionListener

getEditorComponentback to summary
public Component getEditorComponent()

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

Returns:Component

the component

getItemback to summary
public Object getItem()

Returns the edited item

Returns:Object

the edited item

removeActionListenerback to summary
public void removeActionListener(ActionListener l)

Remove an ActionListener

Parameters
l:ActionListener

an ActionListener

selectAllback to summary
public void selectAll()

Ask the editor to start editing and to select everything

setItemback to summary
public void setItem(Object anObject)

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

Parameters
anObject:Object

an item