|
Cytoscape 3.1.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cytoscape.work.util.ListSelection<T>
org.cytoscape.work.util.ListMultipleSelection<T>
T - type of items that will be listed.public final class ListMultipleSelection<T>
List with items of type T : one or more items can be selected.
Module: work-api
To use this in your app, include the following dependency in your POM:
<dependency>
<groupId>org.cytoscape</groupId>
<artifactId>work-api</artifactId>
</dependency>| Field Summary |
|---|
| Fields inherited from class org.cytoscape.work.util.ListSelection |
|---|
values |
| Constructor Summary | |
|---|---|
ListMultipleSelection(List<T> values)
Creates a new ListMultipleSelection object. |
|
ListMultipleSelection(T... values)
Creates a new ListMultipleSelection object. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.cytoscape.work.util.ListSelection |
|---|
addListener, getPossibleValues, listChanged, removeListener, selectionChanged, setPossibleValues |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public List<T> getSelectedValues()
public void setSelectedValues(List<T> vals)
T items as selected in the ListMultipleSelection object.
vals - the selected items.
|
Cytoscape 3.1.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||