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.plaf.basic
class BasicComboBoxEditor
- All Implemented Interfaces:
- FocusListener, ComboBoxEditor
- Direct Known Subclasses:
- BasicComboBoxEditor.UIResource, MetalComboBoxEditor
public class BasicComboBoxEditor
extends Object
implements ComboBoxEditor, FocusListener
The default editor for editable combo boxes. The editor is implemented as a JTextField.
Nested Class Summary |
static class |
A subclass of BasicComboBoxEditor that implements UIResource. |
Method Summary |
void |
|
protected JTextField |
Creates the internal editor component.
|
void |
|
void |
|
Component |
|
Object |
|
void |
|
void |
|
void |
Sets the item that should be edited.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
editor
protected JTextField editor
-
BasicComboBoxEditor
public BasicComboBoxEditor()
-
addActionListener
public void addActionListener(ActionListener l)
-
- Parameters:
l
createEditorComponent
protected JTextField createEditorComponent()
-
Creates the internal editor component. Override this to provide
a custom implementation.
- Returns:
- a new editor component
focusGained
public void focusGained(FocusEvent e)
-
- Parameters:
e
focusLost
public void focusLost(FocusEvent e)
-
- Parameters:
e
getEditorComponent
public Component getEditorComponent()
-
getItem
public Object getItem()
-
removeActionListener
public void removeActionListener(ActionListener l)
-
- Parameters:
l
selectAll
public void selectAll()
-
setItem
public void setItem(Object anObject)
-
Sets the item that should be edited.
- Parameters:
anObject
- the displayed value of the editor
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:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.