T
- type of item that will be listed.public class ListSelection<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected List<T> |
values
Declares a List of items of type
T . |
Constructor and Description |
---|
ListSelection(List<T> values)
Creates a new ListSelection object.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(ListChangeListener<T> changeListener)
Adds a listener that will listen for changes to this object
|
List<ListChangeListener<T>> |
getListeners()
Returns the list of listeners that will listen for changes to this object
|
List<T> |
getPossibleValues()
To get all the items of the
List . |
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
|
public void setPossibleValues(List<T> values)
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.public List<T> getPossibleValues()
List values
.public void addListener(ListChangeListener<T> changeListener)
changeListener
- listener objectpublic void removeListener(ListChangeListener<T> changeListener)
changeListener
- listener objectpublic List<ListChangeListener<T>> getListeners()
protected void listChanged()
protected void selectionChanged()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.