info.bioinfweb.treegraph.gui.dialogs.elementformats
Class LabelIconComboBoxModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by info.bioinfweb.treegraph.gui.dialogs.elementformats.LabelIconComboBoxModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.ComboBoxModel, javax.swing.ListModel

public class LabelIconComboBoxModel
extends javax.swing.AbstractListModel
implements javax.swing.ComboBoxModel

Since:
2.0.25
Author:
Ben Stöver
See Also:
Serialized Form

Field Summary
private  java.util.Vector<java.lang.String> items
           
private  java.lang.String selected
           
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
LabelIconComboBoxModel()
           
 
Method Summary
private  void fill()
           
 java.lang.String getElementAt(int pos)
           
 java.lang.String getSelectedItem()
           
 int getSize()
           
 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

items

private java.util.Vector<java.lang.String> items

selected

private java.lang.String selected
Constructor Detail

LabelIconComboBoxModel

public LabelIconComboBoxModel()
Method Detail

fill

private void fill()

getElementAt

public java.lang.String getElementAt(int pos)
Specified by:
getElementAt in interface javax.swing.ListModel

getSize

public int getSize()
Specified by:
getSize in interface javax.swing.ListModel

getSelectedItem

public java.lang.String 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