org.jvnet.substance
Class SubstanceFileChooserUI.FilterComboBoxModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by org.jvnet.substance.SubstanceFileChooserUI.FilterComboBoxModel
All Implemented Interfaces:
PropertyChangeListener, Serializable, EventListener, ComboBoxModel, ListModel
Enclosing class:
SubstanceFileChooserUI

protected class SubstanceFileChooserUI.FilterComboBoxModel
extends AbstractListModel
implements ComboBoxModel, PropertyChangeListener

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

See Also:
Serialized Form

Field Summary
protected  FileFilter[] filters
           
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
protected SubstanceFileChooserUI.FilterComboBoxModel()
           
 
Method Summary
 Object getElementAt(int index)
           
 Object getSelectedItem()
           
 int getSize()
           
 void propertyChange(PropertyChangeEvent e)
           
 void setSelectedItem(Object filter)
           
 
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
 

Field Detail

filters

protected FileFilter[] filters
Constructor Detail

SubstanceFileChooserUI.FilterComboBoxModel

protected SubstanceFileChooserUI.FilterComboBoxModel()
Method Detail

propertyChange

public void propertyChange(PropertyChangeEvent e)
Specified by:
propertyChange in interface PropertyChangeListener

setSelectedItem

public void setSelectedItem(Object filter)
Specified by:
setSelectedItem in interface ComboBoxModel

getSelectedItem

public Object getSelectedItem()
Specified by:
getSelectedItem in interface ComboBoxModel

getSize

public int getSize()
Specified by:
getSize in interface ListModel

getElementAt

public Object getElementAt(int index)
Specified by:
getElementAt in interface ListModel