S
- The generic type of this ViewUpdater.public abstract class AbstractViewUpdater<S> extends Object implements RowsSetListener
RowsSetListener
for a particular column and VisualProperty
.Module: swing-application-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>swing-application-api</artifactId> </dependency>
Modifier and Type | Field and Description |
---|---|
protected String |
columnName
The name of the column that the
RowsSetListener is provided for. |
protected VisualProperty<S> |
vp
The
VisualProperty that the RowsSetListener is provided for. |
Constructor and Description |
---|
AbstractViewUpdater(VisualProperty<S> vp,
String columnName,
Map<CyRow,View<?>> rowViewMap)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
handleEvent(RowsSetEvent e)
Called whenever
CyRow s are changed. |
protected final VisualProperty<S> vp
VisualProperty
that the RowsSetListener
is provided for.protected final String columnName
RowsSetListener
is provided for.public AbstractViewUpdater(VisualProperty<S> vp, String columnName, Map<CyRow,View<?>> rowViewMap)
vp
- The visual property that should be set on the view when the row
is changed.columnName
- The name of the column within the row that is being
listened to.rowViewMap
- a map between the row that is being listened to and the
view that the visual property should be set when the row is changed.public void handleEvent(RowsSetEvent e)
CyRow
s are changed. Will attempt to set the
visual property on the view with the new value that has been set in the
row.handleEvent
in interface RowsSetListener
e
- The RowsSetEvent
to be processed.Copyright 2011-2015 Cytoscape Consortium. All rights reserved.