Function
A widget to transfer values through source and target Wires
This widget represents a controller task to transfer a value from a source to a target, through a source and a target Wires, when an event (a function) or a topic is issued. If this widget has child ChildWire widgets, their _addWire() methods are called to add Wire arguments to a source or a target Wire.
A
source object and/or property
A
data store for a source data item
An
attribute of a source data item
A
simplified XPath to a source property of an XML element
A
type of the value to be transferred
A
class name of a converter for the value to be transferred
A
target object and/or property
A
data store for a target data item
An
attribute of a target data item
A
simplified XPath to a target property of an XML element
Function
Transfer a value from a source to a target
First, Wires for a source and a target are created from attributes. Then, a value is obtained by getValue() of the source Wire is set by setValue() of the target Wire. The arguments to this method is passed to getValue() and setValue() of Wires, so that they can be used to identify the root objects off the arguments.
Function
Which Wire arguments to build, "source" or "target"
Build Wire arguments from attributes
Arguments object for a source or a target Wire, specified by 'which' argument, are build from corresponding attributes, including '*Store' (for 'dataStore'), '*Attribute' (for 'attribute), '*Path' (for 'path'), 'type' and 'converter'. 'source' or 'target' attribute is parsed as: "object_id.property_name[.sub_property_name...]" If 'source' or 'target' starts with "arguments", 'object' argument for a Wire is set to null, so that the root object is given as an event or topic arguments. If this widget has child ChildWire widgets with a corresponding 'which' attribute, their _addWire() methods are called to add additional Wire arguments and nested Wire is created, specifying the Wire defined by this widget to 'object' argument.
Wire arguments object
Object
Function
A widget to add a child wire
Attributes of this widget are used to add a child Wire to a composite Wire of the parent Transfer widget.
Which
Wire to add a child Wire, "source" or "target", default to "source"
A
root object for the value
A
property for the value
A
type of the value
A
class name of a converter for the value
A
data item attribute for the value
A
simplified XPath for the value
A
composite property name
Function
A parent Transfer widget
Wire arguments
Add a child Wire to Wire arguments
If 'name' attribute is specified, a child Wire is added as the named property of 'children' object of 'args'. Otherwise, a child Wire is added to 'children' array of 'args'.
Function
A parent Transfer widget
Build child Wire arguments from attributes
Arguments object for a child Wire are build from attributes, including 'object', 'property', 'type', 'converter', 'attribute' and 'path'.
Wire arguments object
Function
A widget to add a column wire
Attributes of this widget are used to add a column Wire to a TableAdapter of the parent Transfer widget.
A
column name
Function
A parent Transfer widget
Wire arguments
Add a column Wire to Wire arguments
If 'column' attribute is specified, a column Wire is added as the named property of 'columns' object of 'args'. Otherwise, a column Wire is added to 'columns' array of 'args'.
Function
A widget to add node wires
Attributes of this widget are used to add node Wires to a TreeAdapter of the parent Transfer widget.
A
property for the node title
A
data item attribute for the node title
A
simplified XPath for the node title
Function
A parent Transfer widget
Wire arguments
Add node Wires to Wire arguments
Node Wires are added to 'nodes' array of 'args'.
Function
A parent Transfer widget
Build node Wires arguments from attributes
Arguments object for 'node' Wire are build from attributes, including 'object', 'property', 'type', 'converter', 'attribute' and 'path'. Arguments object for 'title' Wire are build from another set of attributes, 'titleProperty', 'titleAttribute' and 'titlePath'. If this widget has child NodeWire widgets, their _getWires() methods are called recursively to build 'children' array of 'args'.
Wire arguments object
Object
Function
A widget to add a segment wire
Attributes of this widget are used to add a segment Wire to a TextAdapter of the parent Transfer widget.
Function
A parent Transfer widget
Wire arguments
Add a segument Wire to Wire arguments
A segment Wire is added to 'segments' array of 'args'. If 'parent' has 'delimiter' attribute, it is used for 'delimiter' property of 'args'.
Object
Object
Object