T - type of items that will be listed.public final class ListMultipleSelection<T> extends Object
T : one or more items can be selected.| Modifier and Type | Field and Description |
|---|---|
protected List<T> |
values
Declares a List of items of type
T. |
| Constructor and Description |
|---|
ListMultipleSelection(List<T> values)
Creates a new ListMultipleSelection object.
|
ListMultipleSelection(T... values)
Creates a new ListMultipleSelection object.
|
| Modifier and Type | Method and Description |
|---|---|
List<T> |
getPossibleValues()
To get all the items of the
List. |
List<T> |
getSelectedValues()
Get the items that are currently selected.
|
void |
setSelectedValues(List<T> vals)
Set the
T items as selected in the ListMultipleSelection object. |
protected final List<T> values
T.public ListMultipleSelection(T... values)
example :
ListMultipleSelection lms = new ListMultipleSelection("1","2","3","4");
values - An arbitrary number of values of type T items that can be selected.public ListMultipleSelection(List<T> values)
example :
java.util.List list = new jave.util.ArrayList();
list.add("1");
list.add("2");
list.add("3");
list.add("4");
ListMultipleSelection lss = new ListMultipleSelection(list);
values - The list of values of type T that can be selected. The list
may be empty.public List<T> getSelectedValues()
public void setSelectedValues(List<T> vals)
T items as selected in the ListMultipleSelection object.vals - the selected items.public List<T> getPossibleValues()
List values .Copyright 2011 Cytoscape Consortium. All rights reserved.