public interface ComboBoxEditor
用于 JComboBox 组件的编辑器组件。
方法摘要 | |
---|---|
void |
addActionListener(ActionListener l) 添加一个 ActionListener。 |
Component |
getEditorComponent() 返回应该添加到此编辑器的树层次结构中的组件。 |
Object |
getItem() 返回已编辑项。 |
void |
removeActionListener(ActionListener l) 移除一个 ActionListener |
void |
selectAll() 请求编辑器开始编辑并选定所有对象 |
void |
setItem(Object anObject) 设置应该编辑的项。 |
方法详细信息 |
---|
Component getEditorComponent()
void setItem(Object anObject)
Object getItem()
void selectAll()
void addActionListener(ActionListener l)
void removeActionListener(ActionListener l)