|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractListModel
javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel
protected class MetalFileChooserUI.FilterComboBoxModel
A combo box model for the file selection filters.
Field Summary | |
---|---|
protected FileFilter[] |
filters
Storage for the filters in the model. |
Fields inherited from class javax.swing.AbstractListModel |
---|
listenerList |
Constructor Summary | |
---|---|
protected |
MetalFileChooserUI.FilterComboBoxModel()
Creates a new model. |
Method Summary | |
---|---|
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. |
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 |
---|
protected FileFilter[] filters
Constructor Detail |
---|
protected MetalFileChooserUI.FilterComboBoxModel()
Method Detail |
---|
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()
getSize
in interface ListModel
public Object getElementAt(int index)
getElementAt
in interface ListModel
index
- the item index.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |