|
Java™ Platform Standard Ed. 6 |
|||||||||
| 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
Data model for a type-face selection combo-box.
| Field Summary |
|---|
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
MetalFileChooserUI.DirectoryComboBoxModel()
|
|
| Method Summary | |
|---|---|
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. |
| 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 getDepth(int i)
public void setSelectedItem(Object selectedDirectory)
ComboBoxModelListDataListeners that the contents
have changed.
setSelectedItem in interface ComboBoxModelselectedDirectory - the list object to select or null
to clear the selectionpublic Object getSelectedItem()
ComboBoxModel
getSelectedItem in interface ComboBoxModelnull if there is no selectionpublic int getSize()
ListModel
getSize in interface ListModelpublic Object getElementAt(int index)
ListModel
getElementAt in interface ListModelindex - the requested index
index
|
Java™ Platform Standard Ed. 6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 1993, 2010, Oracle and/or its affiliates. All rights reserved.