IBM ILOG Dojo Diagrammer 1.1.1 API Documentation
Legend: Array Boolean Constructor Date DomNode Error Function Namespace Number Object RegExp Singleton String

ibm_ilog.diagram.templating

Object » ibm_ilog.diagram.templating
dojo.require("ibm_ilog.diagram.templating");

Method Summary

Attached Objects

Methods

declareBindableProperty

Bindable properties are properties of a graphic object (Node, Link or Subgraph) that can be used to define bindings in templates.

ParameterTypeDescription
typeThetype to which the property must be added.
propertyThename 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.
defaultValueThedefault value of the property.
instantiate

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.

ParameterTypeDescription
parentdojox.gfx.Surface|| dojox.gfx.Group: The container of the new shape.
templateObject: The description object.
bindings
resolveBindingRefs
ParameterTypeDescription
shape
o
bindings
path