protected class MetalFileChooserUI.DirectoryComboBoxModel extends AbstractListModel implements ComboBoxModel
listenerList
Constructor and Description |
---|
MetalFileChooserUI.DirectoryComboBoxModel()
Creates a new model.
|
Modifier and Type | Method and Description |
---|---|
int |
getDepth(int index)
Returns the depth of the item at the given
index . |
Object |
getElementAt(int index)
Returns the item at the specified index.
|
Object |
getSelectedItem()
Returns the selected item, or
null if no item is selected. |
int |
getSize()
Returns the number of items in the model.
|
void |
setSelectedItem(Object selectedDirectory)
Sets the selected item.
|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListDataListener, removeListDataListener
public MetalFileChooserUI.DirectoryComboBoxModel()
public int getSize()
public Object getElementAt(int index)
getElementAt
in interface ListModel
index
- the item index.public int getDepth(int index)
index
.index
- the item index.public Object getSelectedItem()
null
if no item is selected.getSelectedItem
in interface ComboBoxModel
null
.public void setSelectedItem(Object selectedDirectory)
setSelectedItem
in interface ComboBoxModel
selectedDirectory
- the selected directory.