protected class MetalFileChooserUI.FilterComboBoxModel extends AbstractListModel<Object> implements ComboBoxModel<Object>, PropertyChangeListener
Modifier and Type | Field and Description |
---|---|
protected FileFilter[] |
filters |
listenerList
Modifier | Constructor and Description |
---|---|
protected |
FilterComboBoxModel() |
Modifier and Type | Method and Description |
---|---|
Object |
getElementAt(int index)
返回指定索引处的值。
|
Object |
getSelectedItem()
返回所选项目
|
int |
getSize()
返回列表的长度。
|
void |
propertyChange(PropertyChangeEvent e)
当绑定属性更改时,此方法将被调用。
|
void |
setSelectedItem(Object filter)
设置所选项目。
|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListDataListener, removeListDataListener
protected FileFilter[] filters
public void propertyChange(PropertyChangeEvent e)
PropertyChangeListener
propertyChange
在界面
PropertyChangeListener
e
- 描述事件源和已更改属性的PropertyChangeEvent对象。
public void setSelectedItem(Object filter)
ComboBoxModel
ListDataListener
的内容已经改变了ListDataListener
。
setSelectedItem
在界面
ComboBoxModel<Object>
filter
- 要选择的列表对象或
null
以清除选择
public Object getSelectedItem()
ComboBoxModel
getSelectedItem
在界面
ComboBoxModel<Object>
null
如果没有选择
public int getSize()
ListModel
public Object getElementAt(int index)
ListModel
getElementAt
在界面
ListModel<Object>
index
- 请求的索引
index
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.