javax.swing
Interface ComboBoxEditor

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

public interface ComboBoxEditor

Provides edit capabilities for JComboBoxes.


Method Summary
 void addActionListener(ActionListener listener)
          This method adds specified ActionListener to this ComboBoxEditor.
 Component getEditorComponent()
          This method returns component that will be used by the combo box to display/edit currently selected item in the combo box.
 Object getItem()
          This method returns item that is currently editable.
 void removeActionListener(ActionListener listener)
          This method removes given ActionListener from this ComboBoxEditor.
 void selectAll()
          selectAll
 void setItem(Object item)
          Sets item that should be editted when any editting operation is performed by the user.
 

Method Detail

getEditorComponent

Component getEditorComponent()
This method returns component that will be used by the combo box to display/edit currently selected item in the combo box.

Returns:
Component that will be used by the combo box to display/edit currently selected item

setItem

void setItem(Object item)
Sets item that should be editted when any editting operation is performed by the user. The value is always equal to the currently selected value in the combo box. Thus, whenever a different value is selected from the combo box list then this method should be called to change editting item to the new selected item.

Parameters:
item - item that is currently selected in the combo box

getItem

Object getItem()
This method returns item that is currently editable.

Returns:
Item in the combo box that is currently editable

selectAll

void selectAll()
selectAll


addActionListener

void addActionListener(ActionListener listener)
This method adds specified ActionListener to this ComboBoxEditor.

Parameters:
listener -

removeActionListener

void removeActionListener(ActionListener listener)
This method removes given ActionListener from this ComboBoxEditor.

Parameters:
listener - TODO