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

## info.bioinfweb.treegraph.gui.dialogs.nodedatainput
Class NodeDataComboBoxModel

    java.lang.Object
      javax.swing.AbstractListModel
          info.bioinfweb.treegraph.gui.dialogs.nodedatainput.NodeDataComboBoxModel

All Implemented Interfaces:
  java.io.Serializable, javax.swing.ComboBoxModel, javax.swing.ListModel

    public class NodeDataComboBoxModel

extends javax.swing.AbstractListModel
implements javax.swing.ComboBoxModel

See Also:
  Serialized Form

Field Summary
`private java.util.Vector<NodeDataAdapter>` | `adapters`
`private NodeDataAdapter` | `selected`

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

Constructor Summary
`NodeDataComboBoxModel()`

Method Summary
`private void` | `addNewAdapters()`
`NodeDataAdapter` | `getElementAt(int pos)`
`NodeDataAdapter` | `getSelectedItem()`
`int` | `getSize()`
`void` | `setAdapters(Tree tree)` Equvilent to a call of `setAdapters(tree, false)`.
`void` | `setAdapters(Tree tree, boolean branchLengthSelectable, boolean newIDSelectable)`
`void` | `setOnlyNewAdapters()`
`boolean` | `setSelectedAdapter(java.lang.Class<? extends NodeDataAdapter> adapterClass)` Selects the adapter which is an instance (not instance of a subclass) of the given class.
`void` | `setSelectedItem(java.lang.Object 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

### adapters

    private java.util.Vector<NodeDataAdapter> adapters

### selected

    private NodeDataAdapter selected

Constructor Detail

### NodeDataComboBoxModel

    public NodeDataComboBoxModel()

Method Detail

### setAdapters

    public void setAdapters(Tree tree)

  Equvilent to a call of `setAdapters(tree, false)`.

  Parameters:
    `tree` -
  See Also:
    `setAdapters(Tree, boolean, boolean)`

### addNewAdapters

    private void addNewAdapters()

### setOnlyNewAdapters

    public void setOnlyNewAdapters()

### setAdapters

    public void setAdapters(Tree tree,
                            boolean branchLengthSelectable,
                            boolean newIDSelectable)

  Parameters:
    `tree` - - the tree to obtain the IDs from (Can also be `null`.)
    `branchLengthSelectable` - TODO
    `newIDSelectable` - - If true an adaptor for a new user defined label ID is added. Note that ths label ID has still to be set.

### setSelectedAdapter

    public boolean setSelectedAdapter(java.lang.Class<? extends NodeDataAdapter> adapterClass)

  Selects the adapter which is an instance (not instance of a subclass) of the given class.

  Parameters:
    `adapterClass` -
  Returns:
    `true`, if one adapter was selected, `false`, if no adapter of the given class was found

### getSelectedItem

    public NodeDataAdapter getSelectedItem()

  Specified by:
    `getSelectedItem` in interface `javax.swing.ComboBoxModel`

### setSelectedItem

    public void setSelectedItem(java.lang.Object item)

  Specified by:
    `setSelectedItem` in interface `javax.swing.ComboBoxModel`

### getElementAt

    public NodeDataAdapter getElementAt(int pos)

  Specified by:
    `getElementAt` in interface `javax.swing.ListModel`

### getSize

    public int getSize()

  Specified by:
    `getSize` in interface `javax.swing.ListModel`

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