protected class MetalFileChooserUI.DirectoryComboBoxModel extends AbstractListModel implements ComboBoxModel
listenerList
Constructor and Description |
---|
MetalFileChooserUI.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 selectedDirectory)
Set the selected item.
|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListDataListener, removeListDataListener
public MetalFileChooserUI.DirectoryComboBoxModel()
public int getDepth(int i)
public void setSelectedItem(Object selectedDirectory)
ComboBoxModel
ListDataListener
s that the contents
have changed.setSelectedItem
in interface ComboBoxModel
selectedDirectory
- the list object to select or null
to clear the selectionpublic Object getSelectedItem()
ComboBoxModel
getSelectedItem
in interface ComboBoxModel
null
if there is no selectionpublic int getSize()
ListModel
public Object getElementAt(int index)
ListModel
getElementAt
in interface ListModel
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, 2011, Oracle and/or its affiliates. All rights reserved.
DRAFT ea-b138