javax.swing.plaf.metal
protected class MetalFileChooserUI.DirectoryComboBoxModel extends AbstractListModel implements ComboBoxModel
Constructor Summary | |
---|---|
DirectoryComboBoxModel()
Creates a new model. |
Method Summary | |
---|---|
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. |
index
.
Parameters: index the item index.
Returns: The depth.
Parameters: index the item index.
Returns: The item.
null
if no item is selected.
Returns: The selected item, or null
.
Returns: The number of items in the model.
Parameters: selectedDirectory the selected directory.