Cytoscape 3.1.1 API

org.cytoscape.work.util
Class ListSelection<T>

java.lang.Object
  extended by org.cytoscape.work.util.ListSelection<T>
Type Parameters:
T - type of item that will be listed.
Direct Known Subclasses:
ListMultipleSelection, ListSingleSelection

public class ListSelection<T>
extends Object

A ListSelection object.


Field Summary
protected  List<T> values
          Declares a List of items of type T.
 
Constructor Summary
ListSelection(List<T> values)
          Creates a new ListSelection object.
 
Method Summary
 void addListener(ListChangeListener<T> changeListener)
          Adds a listener that will listen for changes to this object
 List<T> getPossibleValues()
          To get all the items of the List values.
protected  void listChanged()
          Alert all listeners that the list has changed
 void removeListener(ListChangeListener<T> changeListener)
          Removes a listener from the list that will listen for changes to this object
protected  void selectionChanged()
          Alert all listeners that the selection has changed
 void setPossibleValues(List<T> values)
          Changes the set of possible values in the list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

values

protected List<T> values
Declares a List of items of type T.

Constructor Detail

ListSelection

public ListSelection(List<T> values)
Creates a new ListSelection object.

Parameters:
values - List of items of type T that contains the one(s) that is(are) going to be selected. The list of values my be empty.
Method Detail

setPossibleValues

public void setPossibleValues(List<T> values)
Changes the set of possible values in the list

Parameters:
values - List of items of type T that contains the one(s) that is(are) going to be selected. The list of values my be empty.

getPossibleValues

public List<T> getPossibleValues()
To get all the items of the List values.

Returns:
an enumeration of all the items.

addListener

public void addListener(ListChangeListener<T> changeListener)
Adds a listener that will listen for changes to this object

Parameters:
changeListener - listener object

removeListener

public void removeListener(ListChangeListener<T> changeListener)
Removes a listener from the list that will listen for changes to this object

Parameters:
changeListener - listener object

listChanged

protected void listChanged()
Alert all listeners that the list has changed


selectionChanged

protected void selectionChanged()
Alert all listeners that the selection has changed


Cytoscape 3.1.1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.