|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.AbstractListModel
javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel
protected class MetalFileChooserUI.DirectoryComboBoxModel
A combo box model containing the selected directory and all its parent directories.
| Field Summary |
|---|
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
MetalFileChooserUI.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. |
| Methods inherited from class javax.swing.AbstractListModel |
|---|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.ListModel |
|---|
addListDataListener, removeListDataListener |
| Constructor Detail |
|---|
public MetalFileChooserUI.DirectoryComboBoxModel()
| Method Detail |
|---|
public int getSize()
getSize in interface ListModelpublic Object getElementAt(int index)
getElementAt in interface ListModelindex - the item index.
public int getDepth(int index)
index.
index - the item index.
public Object getSelectedItem()
null if no item is selected.
getSelectedItem in interface ComboBoxModelnull.public void setSelectedItem(Object selectedDirectory)
setSelectedItem in interface ComboBoxModelselectedDirectory - the selected directory.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||