BasicComboBoxEditor
, BasicComboBoxEditor.UIResource
, MetalComboBoxEditor
, MetalComboBoxEditor.UIResource
public interface ComboBoxEditor
Modifier and Type | Method | Description |
---|---|---|
void |
addActionListener |
Add an ActionListener. |
Component |
getEditorComponent() |
Returns the component that should be added to the tree hierarchy for this editor |
Object |
getItem() |
Returns the edited item |
void |
removeActionListener |
Remove an ActionListener |
void |
selectAll() |
Ask the editor to start editing and to select everything |
void |
setItem |
Set the item that should be edited. |
Component getEditorComponent()
void setItem(Object anObject)
anObject
- an itemObject getItem()
void selectAll()
void addActionListener(ActionListener l)
l
- an ActionListener
void removeActionListener(ActionListener l)
l
- an ActionListener
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/ComboBoxEditor.html