Home / Development / Documentation / 2.0.44 / LabelIconComboBoxModel
TreeGraph 2
 


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:
Serializable, ComboBoxModel, ListModel

public class LabelIconComboBoxModel
extends AbstractListModel
implements ComboBoxModel

Model used with the combo box in IconPieChartLabelPanel to select the icon type.

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

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

selected

private String selected
Constructor Detail

LabelIconComboBoxModel

public LabelIconComboBoxModel()
Method Detail

fill

private void fill()

getElementAt

public String getElementAt(int pos)
Specified by:
getElementAt in interface ListModel

getSize

public int getSize()
Specified by:
getSize in interface ListModel

getSelectedItem

public String getSelectedItem()
Specified by:
getSelectedItem in interface ComboBoxModel

setSelectedItem

public void setSelectedItem(Object item)
Specified by:
setSelectedItem in interface ComboBoxModel