protected class MetalFileChooserUI.DirectoryComboBoxModel extends AbstractListModel<Object> implements ComboBoxModel<Object>
listenerList
Constructor and Description |
---|
DirectoryComboBoxModel()
|
Modifier and Type | Method and Description |
---|---|
int |
getDepth(int i)
|
Object |
getElementAt(int index)
返回指定索引处的值。
|
Object |
getSelectedItem()
返回所选项目
|
int |
getSize()
返回列表的长度。
|
void |
setSelectedItem(Object selectedDirectory)
设置所选项目。
|
addListDataListener,
fireContentsChanged,
fireIntervalAdded,
fireIntervalRemoved,
getListDataListeners,
getListeners,
removeListDataListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListDataListener,
removeListDataListener
public int getDepth(int i)
public void setSelectedItem(Object selectedDirectory)
ComboBoxModel
ListDataListener
的内容已经更改了ListDataListener
。
setSelectedItem
在接口
ComboBoxModel<Object>
selectedDirectory
- 要选择的列表对象或
null
以清除选择
public Object getSelectedItem()
ComboBoxModel
复制
getSelectedItem
在界面
ComboBoxModel<Object>
null
如果没有选择
public int getSize()
ListModel
public Object getElementAt(int index)
ListModel
复制
getElementAt
在接口
ListModel<Object>
index
- 请求的索引
index