Author: abeld
Date: 2009-04-16 07:56:10 -0700 (Thu, 16 Apr 2009)
New Revision: 16599
Modified:
core3/model-api/branches/edit-views/src/main/java/org/cytoscape/model/CyNetwork.java
Log:
edit-views branch of model-api: add EditProxy api: not as a seperate interface,
but as part of CyNetwork.
Only add to CyNetwork, such methods are not needed for CyNode or
CyEdge (there might be needed for CyDataTable, in which case it will
be added later.)
Modified:
core3/model-api/branches/edit-views/src/main/java/org/cytoscape/model/CyNetwork.java
===================================================================
---
core3/model-api/branches/edit-views/src/main/java/org/cytoscape/model/CyNetwork.java
2009-04-16 14:48:15 UTC (rev 16598)
+++
core3/model-api/branches/edit-views/src/main/java/org/cytoscape/model/CyNetwork.java
2009-04-16 14:56:10 UTC (rev 16599)
@@ -69,6 +69,29 @@
String HIDDEN_ATTRS = "HIDDEN";
/**
+ * Returns an EditProxy object, which can be used to collect a
+ * large number of edits. These edits can be merged back into
+ * the original object (i.e. this object) by calling
+ * .mergeEdits() on the EditProxy object.
+ *
+ * Note to implementors: if you don't care about batching
+ * events in this way, simply implement this method with
+ * "return this;" and the mergeEdits() method with "return;".
+ *
+ * @return an edit proxy that may or may not batch edits
+ */
+ CyNetwork getEditProxy();
+
+ /**
+ * If this instance is an EditProxy of another CyNetwork and
+ * there are pending edits, batch those edits and commit them
+ * to the parent CyNetwork. Otherwise, do nothing.
+ *
+ */
+ void mergeEdits();
+
+
+ /**
* This method is used to create and add a node to this network.
*
* @return the created node
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---