public class BasicComboBoxEditor extends Object implements ComboBoxEditor, FocusListener
| Modifier and Type | Class and Description |
|---|---|
static class |
BasicComboBoxEditor.UIResource
BasicComboBoxEditor的子类实现UIResource。
|
| Modifier and Type | Field and Description |
|---|---|
protected JTextField |
editor |
| Constructor and Description |
|---|
BasicComboBoxEditor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(ActionListener l)
添加一个ActionListener。
|
protected JTextField |
createEditorComponent()
创建内部编辑器组件。
|
void |
focusGained(FocusEvent e)
当组件获得键盘焦点时调用。
|
void |
focusLost(FocusEvent e)
当组件丢失键盘焦点时调用。
|
Component |
getEditorComponent()
返回应该添加到此编辑器的树层次结构中的组件
|
Object |
getItem()
返回已编辑的项目
|
void |
removeActionListener(ActionListener l)
删除一个ActionListener
|
void |
selectAll()
请编辑开始编辑并选择所有内容
|
void |
setItem(Object anObject)
设置应编辑的项目。
|
protected JTextField editor
public Component getEditorComponent()
ComboBoxEditor复制
getEditorComponent在接口
ComboBoxEditor
protected JTextField createEditorComponent()
public void setItem(Object anObject)
setItem在界面
ComboBoxEditor
anObject - 编辑器的显示值
public Object getItem()
ComboBoxEditor
getItem在界面
ComboBoxEditor
public void selectAll()
ComboBoxEditor
selectAll在界面
ComboBoxEditor
public void focusGained(FocusEvent e)
FocusListener复制
focusGained在界面
FocusListener
public void focusLost(FocusEvent e)
FocusListener复制
focusLost在界面
FocusListener
public void addActionListener(ActionListener l)
ComboBoxEditor复制
addActionListener在界面
ComboBoxEditor
public void removeActionListener(ActionListener l)
ComboBoxEditor
removeActionListener在接口
ComboBoxEditor
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.