Serializable, ComboBoxModel<Object>, ListModel<Object>protected class MetalFileChooserUI.DirectoryComboBoxModel extends AbstractListModel<Object> implements ComboBoxModel<Object>
listenerList| Constructor | Description |
|---|---|
DirectoryComboBoxModel() |
Constructs an instance of
DirectoryComboBoxModel. |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getDepth(int i) |
Returns the depth of
i-th file. |
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 selectedDirectory) |
Set the selected item.
|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListeneraddListDataListener, removeListDataListenerpublic DirectoryComboBoxModel()
DirectoryComboBoxModel.public int getDepth(int i)
i-th file.i - an indexi-th filepublic void setSelectedItem(Object selectedDirectory)
ComboBoxModelListDataListeners that the contents
have changed.setSelectedItem in interface ComboBoxModel<Object>selectedDirectory - the list object to select or null
to clear the selectionpublic Object getSelectedItem()
ComboBoxModelgetSelectedItem in interface ComboBoxModel<Object>null if there is no selectionpublic int getSize()
ListModelpublic Object getElementAt(int index)
ListModelgetElementAt in interface ListModel<Object>index - the requested indexindex Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b153-2