javax.swing.plaf.metal
Class MetalFileChooserUI.DirectoryComboBoxModel

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.AbstractListModel sample code for javax.swing.AbstractListModel definition code for javax.swing.AbstractListModel 
      extended by javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , ComboBoxModel sample code for javax.swing.ComboBoxModel definition code for javax.swing.ComboBoxModel , ListModel sample code for javax.swing.ListModel definition code for javax.swing.ListModel
Enclosing class:
MetalFileChooserUI sample code for javax.swing.plaf.metal.MetalFileChooserUI definition code for javax.swing.plaf.metal.MetalFileChooserUI

protected class MetalFileChooserUI.DirectoryComboBoxModel
extends AbstractListModel sample code for javax.swing.AbstractListModel definition code for javax.swing.AbstractListModel
implements ComboBoxModel sample code for javax.swing.ComboBoxModel definition code for javax.swing.ComboBoxModel

Data model for a type-face selection combo-box.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel sample code for javax.swing.AbstractListModel definition code for javax.swing.AbstractListModel
listenerList sample code for javax.swing.AbstractListModel.listenerList definition code for javax.swing.AbstractListModel.listenerList
 
Constructor Summary
MetalFileChooserUI.DirectoryComboBoxModel sample code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel.MetalFileChooserUI.DirectoryComboBoxModel() definition code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel.MetalFileChooserUI.DirectoryComboBoxModel() ()
           
 
Method Summary
 int getDepth sample code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel.getDepth(int) definition code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel.getDepth(int) (int i)
           
 Object sample code for java.lang.Object definition code for java.lang.Object getElementAt sample code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel.getElementAt(int) definition code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel.getElementAt(int) (int index)
          Returns the value at the specified index.
 Object sample code for java.lang.Object definition code for java.lang.Object getSelectedItem sample code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel.getSelectedItem() definition code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel.getSelectedItem() ()
          Returns the selected item
 int getSize sample code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel.getSize() definition code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel.getSize() ()
          Returns the length of the list.
 void setSelectedItem sample code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel.setSelectedItem(java.lang.Object) definition code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel.setSelectedItem(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  selectedDirectory)
          Set the selected item.
 
Methods inherited from class javax.swing.AbstractListModel sample code for javax.swing.AbstractListModel definition code for javax.swing.AbstractListModel
addListDataListener sample code for javax.swing.AbstractListModel.addListDataListener(javax.swing.event.ListDataListener) definition code for javax.swing.AbstractListModel.addListDataListener(javax.swing.event.ListDataListener) , fireContentsChanged sample code for javax.swing.AbstractListModel.fireContentsChanged(java.lang.Object, int, int) definition code for javax.swing.AbstractListModel.fireContentsChanged(java.lang.Object, int, int) , fireIntervalAdded sample code for javax.swing.AbstractListModel.fireIntervalAdded(java.lang.Object, int, int) definition code for javax.swing.AbstractListModel.fireIntervalAdded(java.lang.Object, int, int) , fireIntervalRemoved sample code for javax.swing.AbstractListModel.fireIntervalRemoved(java.lang.Object, int, int) definition code for javax.swing.AbstractListModel.fireIntervalRemoved(java.lang.Object, int, int) , getListDataListeners sample code for javax.swing.AbstractListModel.getListDataListeners() definition code for javax.swing.AbstractListModel.getListDataListeners() , getListeners sample code for javax.swing.AbstractListModel.getListeners(java.lang.Class) definition code for javax.swing.AbstractListModel.getListeners(java.lang.Class) , removeListDataListener sample code for javax.swing.AbstractListModel.removeListDataListener(javax.swing.event.ListDataListener) definition code for javax.swing.AbstractListModel.removeListDataListener(javax.swing.event.ListDataListener)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 
Methods inherited from interface javax.swing.ListModel sample code for javax.swing.ListModel definition code for javax.swing.ListModel
addListDataListener sample code for javax.swing.ListModel.addListDataListener(javax.swing.event.ListDataListener) definition code for javax.swing.ListModel.addListDataListener(javax.swing.event.ListDataListener) , removeListDataListener sample code for javax.swing.ListModel.removeListDataListener(javax.swing.event.ListDataListener) definition code for javax.swing.ListModel.removeListDataListener(javax.swing.event.ListDataListener)
 

Constructor Detail

MetalFileChooserUI.DirectoryComboBoxModel sample code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel() definition code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel()

public MetalFileChooserUI.DirectoryComboBoxModel()
Method Detail

getDepth sample code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel.getDepth(int) definition code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel.getDepth(int)

public int getDepth(int i)

setSelectedItem sample code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel.setSelectedItem(java.lang.Object) definition code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel.setSelectedItem(java.lang.Object)

public void setSelectedItem(Object sample code for java.lang.Object definition code for java.lang.Object  selectedDirectory)
Description copied from interface: ComboBoxModel sample code for javax.swing.ComboBoxModel.setSelectedItem(java.lang.Object) definition code for javax.swing.ComboBoxModel.setSelectedItem(java.lang.Object)
Set the selected item. The implementation of this method should notify all registered ListDataListeners that the contents have changed.

Specified by:
setSelectedItem sample code for javax.swing.ComboBoxModel.setSelectedItem(java.lang.Object) definition code for javax.swing.ComboBoxModel.setSelectedItem(java.lang.Object) in interface ComboBoxModel sample code for javax.swing.ComboBoxModel definition code for javax.swing.ComboBoxModel
Parameters:
selectedDirectory - the list object to select or null to clear the selection

getSelectedItem sample code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel.getSelectedItem() definition code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel.getSelectedItem()

public Object sample code for java.lang.Object definition code for java.lang.Object  getSelectedItem()
Description copied from interface: ComboBoxModel sample code for javax.swing.ComboBoxModel.getSelectedItem() definition code for javax.swing.ComboBoxModel.getSelectedItem()
Returns the selected item

Specified by:
getSelectedItem sample code for javax.swing.ComboBoxModel.getSelectedItem() definition code for javax.swing.ComboBoxModel.getSelectedItem() in interface ComboBoxModel sample code for javax.swing.ComboBoxModel definition code for javax.swing.ComboBoxModel
Returns:
The selected item or null if there is no selection

getSize sample code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel.getSize() definition code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel.getSize()

public int getSize()
Description copied from interface: ListModel sample code for javax.swing.ListModel.getSize() definition code for javax.swing.ListModel.getSize()
Returns the length of the list.

Specified by:
getSize sample code for javax.swing.ListModel.getSize() definition code for javax.swing.ListModel.getSize() in interface ListModel sample code for javax.swing.ListModel definition code for javax.swing.ListModel
Returns:
the length of the list

getElementAt sample code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel.getElementAt(int) definition code for javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel.getElementAt(int)

public Object sample code for java.lang.Object definition code for java.lang.Object  getElementAt(int index)
Description copied from interface: ListModel sample code for javax.swing.ListModel.getElementAt(int) definition code for javax.swing.ListModel.getElementAt(int)
Returns the value at the specified index.

Specified by:
getElementAt sample code for javax.swing.ListModel.getElementAt(int) definition code for javax.swing.ListModel.getElementAt(int) in interface ListModel sample code for javax.swing.ListModel definition code for javax.swing.ListModel
Parameters:
index - the requested index
Returns:
the value at index