protected class MetalFileChooserUI.DirectoryComboBoxModel extends javax.swing.AbstractListModel implements javax.swing.ComboBoxModel
| 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. |
java.lang.Object |
getElementAt(int index)
Returns the item at the specified index.
|
java.lang.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(java.lang.Object selectedDirectory)
Sets the selected item.
|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerpublic MetalFileChooserUI.DirectoryComboBoxModel()
public int getSize()
getSize in interface javax.swing.ListModelpublic java.lang.Object getElementAt(int index)
getElementAt in interface javax.swing.ListModelindex - the item index.public int getDepth(int index)
index.index - the item index.public java.lang.Object getSelectedItem()
null if no item is selected.getSelectedItem in interface javax.swing.ComboBoxModelnull.public void setSelectedItem(java.lang.Object selectedDirectory)
setSelectedItem in interface javax.swing.ComboBoxModelselectedDirectory - the selected directory.