|
Cytoscape 3.0.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cytoscape.work.util.ListSingleSelection<T>
T - type of items that will be listed.public final class ListSingleSelection<T>
List with items of type T : only 1 item can be selected.
| Field Summary | |
|---|---|
protected List<T> |
values
Declares a List of items of type T. |
| Constructor Summary | |
|---|---|
ListSingleSelection(List<T> values)
Creates a new ListSingleSelection object. |
|
ListSingleSelection(T... values)
Creates a new ListSingleSelection object. |
|
| Method Summary | |
|---|---|
List<T> |
getPossibleValues()
To get all the items of the List. |
T |
getSelectedValue()
Get the item that is currently selected. |
void |
setSelectedValue(T val)
Set the val item of type T as selected in the ListSingleSelection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final List<T> values
T.
| Constructor Detail |
|---|
public ListSingleSelection(T... values)
example :
ListSingleSelection lss = new ListSingleSelection("1","2","3","4")
values - An arbitrary number of values of type T that can be selected.public ListSingleSelection(List<T> values)
example :
List list = ArrayList();
list.add("1");
list.add("2");
list.add("3");
list.add("4");
ListSingleSelection lss = new ListSingleSelection(list);
values - The list of values of type T that can be selected. This list
may be empty, but not null.| Method Detail |
|---|
public T getSelectedValue()
public void setSelectedValue(T val)
val item of type T as selected in the ListSingleSelection.
val - the selected item.public List<T> getPossibleValues()
List values .
|
Cytoscape 3.0.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||