protected class

SynthFileChooserUIImpl.FilterComboBoxModel

extends AbstractListModel
implements PropertyChangeListener ComboBoxModel
java.lang.Object
   ↳ javax.swing.AbstractListModel
     ↳ sun.swing.plaf.synth.SynthFileChooserUIImpl.FilterComboBoxModel

Class Overview

Data model for a type-face selection combo-box.

Summary

Fields
protected FileFilter[] filters
[Expand]
Inherited Fields
From class javax.swing.AbstractListModel
Protected Constructors
SynthFileChooserUIImpl.FilterComboBoxModel()
Public Methods
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.
[Expand]
Inherited Methods
From class javax.swing.AbstractListModel
From class java.lang.Object
From interface java.beans.PropertyChangeListener
From interface javax.swing.ComboBoxModel
From interface javax.swing.ListModel

Fields

protected FileFilter[] filters

Protected Constructors

protected SynthFileChooserUIImpl.FilterComboBoxModel ()

Public Methods

public Object getElementAt (int index)

Returns the value at the specified index.

Parameters
index the requested index
Returns
  • the value at index

public Object getSelectedItem ()

Returns the selected item

Returns
  • The selected item or null if there is no selection

public int getSize ()

Returns the length of the list.

Returns
  • the length of the list

public void propertyChange (PropertyChangeEvent e)

This method gets called when a bound property is changed.

Parameters
e A PropertyChangeEvent object describing the event source and the property that has changed.

public void setSelectedItem (Object filter)

Set the selected item. The implementation of this method should notify all registered ListDataListeners that the contents have changed.

Parameters
filter the list object to select or null to clear the selection