info.bioinfweb.treegraph.gui.dialogs.elementformats
Class LabelIconComboBoxModel
java.lang.Object
javax.swing.AbstractListModel
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 |
| 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 |
items
private java.util.Vector<java.lang.String> items
selected
private java.lang.String selected
LabelIconComboBoxModel
public LabelIconComboBoxModel()
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