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)
Returns the value at the specified index.
|
Object |
getSelectedItem()
Returns the selected item
|
int |
getSize()
Returns the length of the list.
|
void |
setSelectedItem(Object
Set the selected item.
|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListDataListener, removeListDataListenerpublic int getDepth(int i)
public void setSelectedItem(ObjectselectedDirectory)
ComboBoxModel
ListDataListeners that the contents have changed.
setSelectedItem in interface
ComboBoxModel<Object>
selectedDirectory - the list object to select or
null to clear the selection
public ObjectgetSelectedItem()
ComboBoxModel
getSelectedItem in interface
ComboBoxModel<Object>
null if there is no selection
public int getSize()
ListModel
public ObjectgetElementAt(int index)
ListModel
getElementAt in interface
ListModel<Object>
index - the requested index
index