Release Notes > JTGO 4.0 Release Notes > New Features > Groups |
Groups |
PREVIOUS NEXT |
The group objects have been improved with the following new features:
A shortcut group is an abstraction denoting an object that is only a reference to an existing group. IltGroup
provides a new attribute, ShortcutAttribute
, whose value can be:
IltShortcutAttributeType.STANDARD
: The group is a regular shortcut.
IltShortcutAttributeType.DANGLING
: The group is a shortcut to an object that is no longer available.
null
: The group is not a shortcut.
A group can be defined as a shortcut by setting the value of attribute shortcut
in the business object. This attribute can be set programmatically using IltGroup.ShortcutAttribute
.
The following example illustrates how a group is created using this attribute via XML:
<addObject id="NE1"> <class>ilog.tgo.model.IltGroup</class> <attribute name="name">Group1</attribute> <attribute name="shortcut">STANDARD</attribute> <attribute name="type">Group</attribute> </addObject>
Shortcut groups are graphically represented by an icon located at the bottom left of the group plinth.
The result can be seen in the following image:
The shortcut representation is displayed according to the business object CSS configuration. The following properties can be used to customize the shortcut representation:
shortcutIcon
: This property defines the icon that is used in the shortcutrepresentation. By default, image ilt_shortcut.png
is used for the standard shortcut representation and ilt_dangling_shortcut.png
for the dangling shortcut representation.
shortcutIconVisible
: This property defines whether the shortcut icon is displayed or not.
The group representation (polygonal, rectangular or linear) now reflects the primary state information, if an object state has been set to the object.
The following image shows a polygonal group in different state representations corresponding to OSI primary states.
Like the other predefined business objects, you can customize groups according to their state information by using a CSS file. (See Customizing Groups in the Styling documentation.)
The new group representation is enabled through the CSS property baseStyleEnabled
as shown in the following CSS extract:
object."ilog.tgo.model.IltGroup" { baseStyleEnabled: true; }
It is now possible to customize an icon decoration for groups using CSS. The following properties are now supported:
Copyright © Rogue Wave Software, Inc. 1997, 2015. All rights reserved. Legal terms. | PREVIOUS NEXT |