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, removeListDataListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListDataListener, removeListDataListenerpublic MetalFileChooserUI.DirectoryComboBoxModel()
public int getSize()
public Object getElementAt(int index)
getElementAt in interface ListModelindex - 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 ComboBoxModelnull.public void setSelectedItem(Object selectedDirectory)
setSelectedItem in interface ComboBoxModelselectedDirectory - the selected directory.