java.lang.Object
javax.swing.AbstractListModel<Object>
javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel
- All Implemented Interfaces:
- Serializable,- ComboBoxModel<Object>,- ListModel<Object>
- Enclosing class:
- MetalFileChooserUI
protected class MetalFileChooserUI.DirectoryComboBoxModel extends AbstractListModel<Object> implements ComboBoxModel<Object>
Data model for a type-face selection combo-box.
- 
Field Summary
- 
Constructor SummaryConstructors Constructor Description DirectoryComboBoxModel()Constructs an instance ofDirectoryComboBoxModel.
- 
Method SummaryModifier and Type Method Description intgetDepth(int i)Returns the depth ofi-th file.Methods declared in class javax.swing.AbstractListModeladdListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerMethods declared in class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface javax.swing.ListModeladdListDataListener, getElementAt, getSize, removeListDataListener
- 
Constructor Details- 
DirectoryComboBoxModelpublic DirectoryComboBoxModel()Constructs an instance ofDirectoryComboBoxModel.
 
- 
- 
Method Details- 
getDepthpublic int getDepth(int i)Returns the depth ofi-th file.- Parameters:
- i- an index
- Returns:
- the depth of i-th file
 
 
-