protected class MetalFileChooserUI.FilterComboBoxModel extends AbstractListModel implements ComboBoxModel, PropertyChangeListener
| Modifier and Type | Field and Description |
|---|---|
protected FileFilter[] |
filters
Storage for the filters in the model.
|
listenerList| Modifier | Constructor and Description |
|---|---|
protected |
MetalFileChooserUI.FilterComboBoxModel()
Creates a new model.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getElementAt(int index)
Returns the item at the specified index.
|
Object |
getSelectedItem()
Returns the selected file filter.
|
int |
getSize()
Returns the number of items in the model.
|
void |
propertyChange(PropertyChangeEvent e)
Handles property changes.
|
void |
setSelectedItem(Object filter)
Sets the selected filter.
|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListDataListener, removeListDataListenerprotected FileFilter[] filters
protected MetalFileChooserUI.FilterComboBoxModel()
public void propertyChange(PropertyChangeEvent e)
propertyChange in interface PropertyChangeListenere - the property change event.public void setSelectedItem(Object filter)
setSelectedItem in interface ComboBoxModelfilter - the filter (null ignored).public Object getSelectedItem()
getSelectedItem in interface ComboBoxModelpublic int getSize()
public Object getElementAt(int index)
getElementAt in interface ListModelindex - the item index.