Home > Class Reference > ENSLIB namespace > %ZEN.SVGComponent.abstractSVGGroup


abstract class %ZEN.SVGComponent.abstractSVGGroup extends %XML.Adaptor

Base implementation of SVG group behavior.

Property Inventory (Including Private)

Method Inventory (Including Private)


Subclasses can set this to change default layout for a group.
parameter NAMESPACE = http://www.intersystems.com/zen;
XML namespace used for library components.

Properties (Including Private)

property children as list of svgComponent (XMLELEMENTREF = 1, XMLPROJECTION = "ELEMENT", XMLTYPECONSTRAINT = "CHOICE", ZENSETTING = 0);
Set of svg components within this group.
Property methods: childrenBuildValueArray(), childrenCollectionToDisplay(), childrenCollectionToOdbc(), childrenDisplayToCollection(), childrenGet(), childrenGetObject(), childrenGetObjectId(), childrenGetSwizzled(), childrenIsValid(), childrenOdbcToCollection(), childrenSet(), childrenSetObject(), childrenSetObjectId()
property disabled as %ZEN.Datatype.boolean [ InitialExpression = 0 ];
If true, this group and its children are disabled.
Property methods: disabledDisplayToLogical(), disabledGet(), disabledIsValid(), disabledLogicalToDisplay(), disabledLogicalToOdbc(), disabledLogicalToXSD(), disabledNormalize(), disabledSet(), disabledXSDToLogical()
property layout as %ZEN.Datatype.string (VALUELIST = ",vertical,horizontal,flow,none") [ InitialExpression = ..#DEFAULTLAYOUT ];
Specifies how components within this group should be layed out.
"none" indicates that no layout is provided.
"vertical" indicates that components within this group are layed out vertically.
"horizontal" indicates that components within this group are layed out horizontally.
"flow" indicates that components within this group are placed within multiple rows. Items are placed horizontally until the width of the container is exceeded and then components are placed on the next row.
Property methods: layoutChildren(), layoutDisplayToLogical(), layoutGet(), layoutIsValid(), layoutLogicalToDisplay(), layoutLogicalToOdbc(), layoutNormalize(), layoutSet()

Methods (Including Private)

method %AddChild(pComponent As %ZEN.Component.object)
Add a child component pComponent to this group. This is called when the server component tree is being created. This also adds pComponent to the page that this group belongs to; this group must be added to a page before adding any child components to it. In addition, the id property of the component must be set before calling this method.
method %RemoveChild(pComponent As %ZEN.Component.object) as %Boolean
Remove child component pComponent from this group. Returns true if the component was found and removed.
clientmethod addChild(component) [ Language = javascript ]
Client-side method.
Dynamically add a component to this group on the client.
clientmethod layoutChildren() [ Language = javascript ]
Apply layout to the child components within this group. Updates the value of width and height for this group;
clientmethod removeChild(component) [ Language = javascript ]
Client-side method.
Dynamically remove a component from this group on the client.
final clientmethod renderSVG(document, parent) [ Language = javascript ]
Draw an enclosing SVG group and then render the SVG children of the group.
clientmethod setOverlayMode(mode) [ Language = javascript ]
Set overlay mode for each child of this group.
clientmethod setPropertyAll(property, value, value2) [ Language = javascript ]
Apply the given value to the specified property for this group and all of its children.
Note that this will not work for 'disabled'; for that use setProperty().

Inherited Members

Inherited Methods (Including Private)