javax.swing.plaf.metal
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, removeListDataListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListDataListener, removeListDataListener
protected FileFilter[] filters
protected MetalFileChooserUI.FilterComboBoxModel()
public void propertyChange(PropertyChangeEvent e)
propertyChange
in interface PropertyChangeListener
e
- the property change event.public void setSelectedItem(Object filter)
setSelectedItem
in interface ComboBoxModel
filter
- the filter (null
ignored).public Object getSelectedItem()
getSelectedItem
in interface ComboBoxModel
public int getSize()
public Object getElementAt(int index)
getElementAt
in interface ListModel
index
- the item index.