S - The generic type of this ViewUpdater.public abstract class AbstractViewUpdater<S> extends Object implements RowsSetListener
RowsSetListener
for a particular column and VisualProperty.| 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.
|
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)
CyRows 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 RowsSetListenere - The RowsSetEvent to be processed.Copyright 2011 Cytoscape Consortium. All rights reserved.