Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.crosswire.common.swing
Class FontChooser.CustomComboBoxModel

    java.lang.Object
      javax.swing.AbstractListModel
          org.crosswire.common.swing.FontChooser.CustomComboBoxModel

All Implemented Interfaces:
  Serializable, ComboBoxModel, ListModel

Enclosing class:
  FontChooser

    static class FontChooser.CustomComboBoxModel

extends AbstractListModel
implements ComboBoxModel

Model for the font style drop down

Field Summary
`private Font[]` | `fonts` An array of the fonts themselves
`private Object` | `selection` The currently selected item
`private static long` | `serialVersionUID` Serialization ID

Fields inherited from class javax.swing.AbstractListModel
`listenerList`

Constructor Summary
`protected` | `FontChooser.CustomComboBoxModel()` Create a custom data model for a JComboBox

Method Summary
`Object` | `getElementAt(int index)`
`Object` | `getSelectedItem()`
`int` | `getSize()`
`void` | `setSelectedItem(Object selection)`

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

### fonts

    private Font[] fonts

  An array of the fonts themselves

### selection

    private Object selection

  The currently selected item

### serialVersionUID

    private static final long serialVersionUID

  Serialization ID

  See Also:
    Constant Field Values

Constructor Detail

### FontChooser.CustomComboBoxModel

    protected FontChooser.CustomComboBoxModel()

  Create a custom data model for a JComboBox

Method Detail

### setSelectedItem

    public void setSelectedItem(Object selection)

  Specified by:
    `setSelectedItem` in interface `ComboBoxModel`

### getSelectedItem

    public Object getSelectedItem()

  Specified by:
    `getSelectedItem` in interface `ComboBoxModel`

### getSize

    public int getSize()

  Specified by:
    `getSize` in interface `ListModel`

### getElementAt

    public Object getElementAt(int index)

  Specified by:
    `getElementAt` in interface `ListModel`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Copyright ¨ 2003-2006
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD