protected class MetalFileChooserUI.FilterComboBoxModel extends AbstractListModel<Object > implements ComboBoxModel <Object >, PropertyChangeListener
| Modifier and Type | Field and Description |
|---|---|
protected FileFilter |
filters
|
listenerList| Modifier | Constructor and Description |
|---|---|
protected |
FilterComboBoxModel()
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getElementAt(int index)
Returns the value at the specified index.
|
Object |
getSelectedItem()
Returns the selected item
|
int |
getSize()
Returns the length of the list.
|
void |
propertyChange(PropertyChangeEvent
This method gets called when a bound property is changed.
|
void |
setSelectedItem(Object
Set the selected item.
|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListDataListener, removeListDataListenerprotected FileFilter[] filters
public void propertyChange(PropertyChangeEvente)
PropertyChangeListener
propertyChange in interface
PropertyChangeListener
e - A PropertyChangeEvent object describing the event source and the property that has changed.
public void setSelectedItem(Objectfilter)
ComboBoxModel
ListDataListeners that the contents have changed.
setSelectedItem in interface
ComboBoxModel<Object>
filter - the list object to select or
null to clear the selection
public ObjectgetSelectedItem()
ComboBoxModel
getSelectedItem in interface
ComboBoxModel<Object>
null if there is no selection
public int getSize()
ListModel
public ObjectgetElementAt(int index)
ListModel
getElementAt in interface
ListModel<Object>
index - the requested index
index