Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.plaf.basic.BasicComboBoxEditor
public class BasicComboBoxEditor extends Object implements ComboBoxEditor, FocusListener
The default editor for editable combo boxes. The editor is implemented as a JTextField.
Modifier and Type | Class and Description |
---|---|
static class |
BasicComboBoxEditor.UIResource
A subclass of BasicComboBoxEditor that implements UIResource. |
Modifier and Type | Field and Description |
---|---|
protected JTextField |
editor
|
Constructor and Description |
---|
BasicComboBoxEditor()
|
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(ActionListener l)
Add an ActionListener. |
protected JTextField |
createEditorComponent()
Creates the internal editor component. |
void |
focusGained(FocusEvent e)
Invoked when a component gains the keyboard focus. |
void |
focusLost(FocusEvent e)
Invoked when a component loses the keyboard focus. |
Component |
getEditorComponent()
Return the component that should be added to the tree hierarchy for this editor |
Object |
getItem()
Return the edited item |
void |
removeActionListener(ActionListener l)
Remove an ActionListener |
void |
selectAll()
Ask the editor to start editing and to select everything |
void |
setItem(Object anObject)
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 |
Field Detail |
---|
protected JTextField editor
Constructor Detail |
---|
public BasicComboBoxEditor()
Method Detail |
---|
public Component getEditorComponent()
ComboBoxEditor
getEditorComponent
in interface ComboBoxEditor
protected JTextField createEditorComponent()
public void setItem(Object anObject)
setItem
in interface ComboBoxEditor
anObject
- the displayed value of the editorpublic Object getItem()
ComboBoxEditor
getItem
in interface ComboBoxEditor
public void selectAll()
ComboBoxEditor
selectAll
in interface ComboBoxEditor
public void focusGained(FocusEvent e)
FocusListener
focusGained
in interface FocusListener
public void focusLost(FocusEvent e)
FocusListener
focusLost
in interface FocusListener
public void addActionListener(ActionListener l)
ComboBoxEditor
addActionListener
in interface ComboBoxEditor
public void removeActionListener(ActionListener l)
ComboBoxEditor
removeActionListener
in interface ComboBoxEditor
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.