PropertyChangeListener
, Serializable
, EventListener
, ComboBoxModel<Object>
, ListModel<Object>
MetalFileChooserUI
protected class MetalFileChooserUI.FilterComboBoxModel extends AbstractListModel<Object> implements ComboBoxModel<Object>, PropertyChangeListener
Modifier and Type | Field | Description |
---|---|---|
protected FileFilter[] |
filters |
An array of file filters. |
listenerList
Modifier | Constructor | Description |
---|---|---|
protected |
Constructs an instance of FilterComboBoxModel . |
Modifier and Type | Method | Description |
---|---|---|
Object |
getElementAt |
Returns the value at the specified index. |
Object |
getSelectedItem() |
Returns the selected item |
int |
getSize() |
Returns the length of the list. |
void |
propertyChange |
This method gets called when a bound property is changed. |
void |
setSelectedItem |
Set the selected item. |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListDataListener, removeListDataListener
protected FileFilter[] filters
protected FilterComboBoxModel()
FilterComboBoxModel
.public void propertyChange(PropertyChangeEvent e)
PropertyChangeListener
propertyChange
in interface PropertyChangeListener
e
- A PropertyChangeEvent object describing the event source and the property that has changed.public void setSelectedItem(Object filter)
ComboBoxModel
ListDataListener
s that the contents have changed.setSelectedItem
in interface ComboBoxModel<Object>
filter
- the list object to select or null
to clear the selectionpublic Object getSelectedItem()
ComboBoxModel
getSelectedItem
in interface ComboBoxModel<Object>
null
if there is no selectionpublic int getSize()
ListModel
public Object getElementAt(int index)
ListModel
getElementAt
in interface ListModel<Object>
index
- the requested indexindex
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/plaf/metal/MetalFileChooserUI.FilterComboBoxModel.html