ibm_ilog.diagram.templating (version 1.1-SNAPSHOT)
Object » ibm_ilog.diagram.templating
dojo.require("ibm_ilog.diagram.templating");
Method Summary
- declareBindableProperty(type, property, defaultValue) Declares a bindable property for an object type.
- instantiate(parent, template, bindings) Instantiate the specified template.
- resolveBindingRefs(shape, o, bindings, path)
Attached Objects
Methods
Bindable properties are properties of a graphic object (Node, Link or Subgraph) that can be used to define bindings in templates.
Parameter | Type | Description |
---|---|---|
type | The | type to which the property must be added. |
property | The | name of the property. If the property name is 'foo', declaring the bindable property will extend the specified type with two methods: getFoo() and a setFoo(newValue). In the template of the object, you can define bindings like: text: '{{foo}}'. The initial value of the bindable property will be used when creating the object, and when the property is changed the template will be updated automatically. |
defaultValue | The | default value of the property. |
A template object describes both the contents of a shape and its appearance properties. The description object must conform to the gfx serialization specification. In addition, it supports the concept of attach point that exists in dijit with the dojoAttachPoint attribute. When this method is invoked, an instance of the template is created and initialized. If attach points are defined in the template, the corresponding properties are defined on the instance.
Parameter | Type | Description |
---|---|---|
parent | dojox.gfx.Surface | || dojox.gfx.Group: The container of the new shape. |
template | Object | : The description object. |
bindings |