LzReplicationManager
出自OpenFace
目录 |
LzReplicationManager
The controller for views replicated by data. Extends Datapath
When a view's datapath matches more than one data node, one instance of the view is created for each match. The replicated views are referred to as clones' When this happens, a replication manager (or a subclass of LzReplicationManager) is created to manage the clones. Replication managers are never directly instantiated — they are created when a datapath makes multiple matches.
Attributes
Name Usage Type (Tag) Type (JS) Default Category
clones JS only Array of LzNode readonly The LzNodes which this LzReplicationManager has created.
nodes JS only readonly
The nodes that this replication manager will map to views
Attributes inherited from Datapath
ondata, onerror, rerunxpath, xpath
Attributes inherited from Datapointer
context, p
Methods
setVisible()
LzReplicationManager.setVisible(vis)
Sets the visibility of all the clones controlled by the replication manager Parameters Name Type Desc vis Boolean The value to set the visibility to.
Methods inherited from LzDatapointer
addNode, addNodeFromPointer, comparePointer, deleteNode, deleteNodeAttribute, dupePointer, getDataset, getNodeAttribute, getNodeAttributes, getNodeCount, getNodeName, getNodeText, isValid, selectChild, selectNext, selectParent, selectPrev, serialize, setFromPointer, setNodeAttribute, setNodeName, setNodeText, setPointer, setXPath
Events
Name Description
onclones Sent when clone finish.
onnodes Sent before clone.

