|
Java™ Platform Standard Ed. 7 DRAFT ea-b76 |
|||||||||
| 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 extends AbstractListModel implements ComboBoxModel, PropertyChangeListener
Data model for a type-face selection combo-box.
| Modifier and Type | Field and Description |
|---|---|
protected FileFilter[] |
filters
|
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Modifier | Constructor and Description |
|---|---|
protected |
MetalFileChooserUI.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 e)
This method gets called when a bound property is changed. |
void |
setSelectedItem(Object filter)
Set the selected item. |
| 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)
PropertyChangeListener
propertyChange in interface PropertyChangeListenere - A PropertyChangeEvent object describing the event source
and the property that has changed.public void setSelectedItem(Object filter)
ComboBoxModelListDataListeners that the contents
have changed.
setSelectedItem in interface ComboBoxModelfilter - the list object to select or null
to clear the selectionpublic Object getSelectedItem()
ComboBoxModel
getSelectedItem in interface ComboBoxModelnull if there is no selectionpublic int getSize()
ListModel
getSize in interface ListModelpublic Object getElementAt(int index)
ListModel
getElementAt in interface ListModelindex - the requested indexindex
|
Java™ Platform Standard Ed. 7 DRAFT ea-b76 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.