|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractListModel javax.swing.DefaultComboBoxModel cytoscape.util.swing.WidestStringComboBoxModel
public class WidestStringComboBoxModel
Field Summary |
---|
Fields inherited from class javax.swing.AbstractListModel |
---|
listenerList |
Constructor Summary | |
---|---|
WidestStringComboBoxModel()
Class Constructor. |
|
WidestStringComboBoxModel(Object[] items)
Class Constructor specifying an array of Objects to form the model. |
|
WidestStringComboBoxModel(Vector<?> v)
Class Constructor specifying a vector of Objects to form the model. |
Method Summary | |
---|---|
void |
addElement(Object anObject)
Adds the given object to the model. |
protected String |
getLabel(Object anObject)
Returns the String corresponding to the parameter object for use in calculating the width of popup required. |
String |
getWidest()
Returns the longest display String for the objects in this model. |
void |
insertElementAt(Object anObject,
int index)
Inserts an object into the model at the given index. |
void |
removeAllElements()
Removes all objects from the model. |
void |
removeElement(Object anObject)
Removes the given object from the model. |
void |
removeElementAt(int index)
Removes the object at the specified index from the model. |
void |
resetWidest()
Invalidates the cached longest String. |
Methods inherited from class javax.swing.DefaultComboBoxModel |
---|
getElementAt, getIndexOf, getSelectedItem, getSize, setSelectedItem |
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 |
Constructor Detail |
---|
public WidestStringComboBoxModel()
public WidestStringComboBoxModel(Object[] items)
items
- public WidestStringComboBoxModel(Vector<?> v)
v
- Method Detail |
---|
public void addElement(Object anObject)
addElement
in interface MutableComboBoxModel
addElement
in class DefaultComboBoxModel
anObject
- the object to be added to the modelpublic void insertElementAt(Object anObject, int index)
insertElementAt
in interface MutableComboBoxModel
insertElementAt
in class DefaultComboBoxModel
anObject
- the object to be added to the modelindex
- the index at which the given object is to be addedpublic void removeAllElements()
removeAllElements
in class DefaultComboBoxModel
public void removeElement(Object anObject)
removeElement
in interface MutableComboBoxModel
removeElement
in class DefaultComboBoxModel
anObject
- the object to be removed from the modelpublic void removeElementAt(int index)
removeElementAt
in interface MutableComboBoxModel
removeElementAt
in class DefaultComboBoxModel
public void resetWidest()
resetWidest
in interface WidestStringProvider
public String getWidest()
getWidest
in interface WidestStringProvider
protected String getLabel(Object anObject)
anObject
-
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |