javax.swing.plaf.metal
Class MetalFileChooserUI.FilterComboBoxModel

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.FilterComboBoxModel
All Implemented Interfaces:
PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener , Serializable sample code for java.io.Serializable definition code for java.io.Serializable , EventListener sample code for java.util.EventListener definition code for java.util.EventListener , 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.FilterComboBoxModel
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 , PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener

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

See Also:
Serialized Form

Field Summary
protected  FileFilter sample code for javax.swing.filechooser.FileFilter definition code for javax.swing.filechooser.FileFilter [] filters sample code for javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel.filters definition code for javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel.filters
           
 
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
protected MetalFileChooserUI.FilterComboBoxModel sample code for javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel.MetalFileChooserUI.FilterComboBoxModel() definition code for javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel.MetalFileChooserUI.FilterComboBoxModel() ()
           
 
Method Summary
 Object sample code for java.lang.Object definition code for java.lang.Object getElementAt sample code for javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel.getElementAt(int) definition code for javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel.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.FilterComboBoxModel.getSelectedItem() definition code for javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel.getSelectedItem() ()
          Returns the selected item
 int getSize sample code for javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel.getSize() definition code for javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel.getSize() ()
          Returns the length of the list.
 void propertyChange sample code for javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel.propertyChange(java.beans.PropertyChangeEvent) definition code for javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel.propertyChange(java.beans.PropertyChangeEvent) (PropertyChangeEvent sample code for java.beans.PropertyChangeEvent definition code for java.beans.PropertyChangeEvent  e)
          This method gets called when a bound property is changed.
 void setSelectedItem sample code for javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel.setSelectedItem(java.lang.Object) definition code for javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel.setSelectedItem(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  filter)
          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)
 

Field Detail

filters sample code for javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel.filters

protected FileFilter sample code for javax.swing.filechooser.FileFilter definition code for javax.swing.filechooser.FileFilter [] filters
Constructor Detail

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

protected MetalFileChooserUI.FilterComboBoxModel()
Method Detail

propertyChange sample code for javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel.propertyChange(java.beans.PropertyChangeEvent) definition code for javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel.propertyChange(java.beans.PropertyChangeEvent)

public void propertyChange(PropertyChangeEvent sample code for java.beans.PropertyChangeEvent definition code for java.beans.PropertyChangeEvent  e)
Description copied from interface: PropertyChangeListener sample code for java.beans.PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent) definition code for java.beans.PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
This method gets called when a bound property is changed.

Specified by:
propertyChange sample code for java.beans.PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent) definition code for java.beans.PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent) in interface PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener
Parameters:
e - A PropertyChangeEvent object describing the event source and the property that has changed.

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

public void setSelectedItem(Object sample code for java.lang.Object definition code for java.lang.Object  filter)
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:
filter - the list object to select or null to clear the selection

getSelectedItem sample code for javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel.getSelectedItem() definition code for javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel.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.FilterComboBoxModel.getSize() definition code for javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel.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.FilterComboBoxModel.getElementAt(int) definition code for javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel.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