Author: mes
Date: 2010-08-17 15:03:31 -0700 (Tue, 17 Aug 2010)
New Revision: 21414
Modified:
core3/vizmap-gui-impl/trunk/src/main/java/org/cytoscape/view/vizmap/gui/internal/AttributeEventsListener.java
Log:
updated support for row set microlistener
Modified:
core3/vizmap-gui-impl/trunk/src/main/java/org/cytoscape/view/vizmap/gui/internal/AttributeEventsListener.java
===================================================================
---
core3/vizmap-gui-impl/trunk/src/main/java/org/cytoscape/view/vizmap/gui/internal/AttributeEventsListener.java
2010-08-17 22:03:20 UTC (rev 21413)
+++
core3/vizmap-gui-impl/trunk/src/main/java/org/cytoscape/view/vizmap/gui/internal/AttributeEventsListener.java
2010-08-17 22:03:31 UTC (rev 21414)
@@ -9,11 +9,11 @@
import org.cytoscape.model.CyRow;
import org.cytoscape.model.events.ColumnCreatedEvent;
import org.cytoscape.model.events.ColumnDeletedEvent;
-import org.cytoscape.model.events.RowSetEvent;
+import org.cytoscape.model.events.RowSetMicroListener;
import org.cytoscape.session.CyNetworkManager;
import
org.cytoscape.view.vizmap.gui.internal.editor.propertyeditor.CyComboBoxPropertyEditor;
-public class AttributeEventsListener {
+public class AttributeEventsListener implements RowSetMicroListener {
private CyComboBoxPropertyEditor propEditor;
private Class<?> filter;
@@ -54,15 +54,13 @@
* @param newAttributeValue
* Object
*/
- public void handleEvent(RowSetEvent e) {
-// CyRow row = e.getSource();
-// String attributeName = e.getColumnName();
-//
-// // we do not process network attributes
-// if (attr == cyNetworkManager.getCurrentNetwork()
-//
.getNetworkCyDataTables().get(CyNetwork.DEFAULT_ATTRS))
-// return;
-//
+
+ public Object getEventSource() {
+ return attr;
+ }
+
+ public void handleRowSet(CyRow row, String attributeName, Object value)
{
+
// // conditional repaint container
// boolean repaint = false;
//
@@ -181,4 +179,4 @@
// TODO Auto-generated method stub
}
-}
\ No newline at end of file
+}
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.