|
Cytoscape 2.7.0 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.AbstractListModel
javax.swing.DefaultComboBoxModel
cytoscape.util.swing.WidestStringComboBoxModel
public class WidestStringComboBoxModel
| 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. |
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, getListDataListeners, getListeners, removeListDataListener |
| Methods inherited from class java.lang.Object |
|---|
equals, 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 MutableComboBoxModeladdElement in class DefaultComboBoxModelanObject - the object to be added to the model
public void insertElementAt(Object anObject,
int index)
insertElementAt in interface MutableComboBoxModelinsertElementAt in class DefaultComboBoxModelanObject - the object to be added to the modelindex - the index at which the given object is to be addedpublic void removeAllElements()
removeAllElements in class DefaultComboBoxModelpublic void removeElement(Object anObject)
removeElement in interface MutableComboBoxModelremoveElement in class DefaultComboBoxModelanObject - the object to be removed from the modelpublic void removeElementAt(int index)
removeElementAt in interface MutableComboBoxModelremoveElementAt in class DefaultComboBoxModelpublic void resetWidest()
resetWidest in interface WidestStringProviderpublic String getWidest()
getWidest in interface WidestStringProvider
|
www.cytoscape.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||