Composite Object
The composite object (class name:
obj_composite) allows you to show a display (.rtv) file within an object. This
is useful for creating groups of objects that you want to use multiple times,
either directly in your displays, or in the object grid.
|
 |
Composite Properties
There are 2
standard properties in the composite category, rtvName and substitutions.
Enter or select the name of a display (.rtv) file in the rtvName property
to show that display in your
object. The rtvName property should be set before any other properties.
The rtvName display is referred to as the composite display. Once you have set
the rtvName, the composite display will show up in your object, and all of the public
variables from the composite display are added as properties. These
properties can be set to static data or attached to data to drive the values in
the composite display. While any display can be used as a composite display,
there are some limitations on objects and variables names. See the Creating
Composite Displays section for more information.
The substitutions property allows you to set
substitutions on the composite display.
Property
Name |
Description |
rtvName |
Specify the name of the display (.rtv)
file to show in your object. This display is referred to as the composite
display. See Creating Composite
Displays below for information on creating displays to use in
composite objects. |
substitutions |
Specify the substitutions for the
composite display. NOTE: The composite display also inherits substitutions
from the display that contains the composite object.
Substitutions are optional and must use the following syntax:
$subname:subvalue $subname2:subvalue2
If a substitution value contains
a single quote, it must be escaped using a / :
$filter:Plant=/'Dallas/'
If a substitution value contains
a space, it must be enclosed in single quotes. Do not escape these single
quotes:
$subname:subvalue $subname2:'sub
value 2'
A substitution string cannot contain
the following:
:
|
|
|
.
|
tab
|
space
|
,
|
;
|
=
|
<
|
>
|
'
|
"
|
& |
/ |
\ |
{ |
} |
[ |
] |
( |
) |
|
Background Properties
Specify how the background
is displayed in your composite object.
Property
Name |
Description |
bg3dFlag |
Select to display a 3D edge on the
background rectangle. |
bgColor |
Select the
button and choose a color from the palette to set the background color. |
bgEdgeWidth |
Set the width of the 3D
edge on the background rectangle. This property is only used if the bg3dFlag
is selected. |
bgGradientFlag |
Select to display a gradient
in the background rectangle. |
bgVisFlag |
Select to display the background
rectangle. |
Object Properties
Specify how you composite object is displayed.
Property
Name |
Description |
objHeight |
This property is read only. It shows the height
in pixels of the composite object which is set by the height of the composite
display. |
objName |
Select the
button and choose a color from the palette to set the background color. |
objWidth |
This property is read only. It shows the width
in pixels of the composite object which is set by the width of the composite
display. |
objX |
Set the x position of the object. |
objY |
Set the y position of the object. |
transparencyPercent |
Sets the transparency of the object.
This property only applies to the background of the composite object. |
visFlag |
Set the visibility of the object. |
Interaction Properties
To specify a drill
down display, double click on the drillDownTarget Property
Name. Any display (.rtv) file can be targeted as a drill down.
Once a drill down target has been set, double-click on the composite object to
activate the drill down. Drill down displays can be activated in the same
window that contains the object or open in a separate window. This allows
you to build a customizable hierarchy of displays.
The
drillDownTarget and command for objects in a composite display
will take precedence over the drill down target or command for the composite
object. This is only supported for the Display Viewer and Display Viewer Applet
and only if the composite object is not used in an object grid. In those cases,
the drill down target or command on the composite object will be used.
Creating
Composite Displays
Any display can be used as the display in a composite object, but there are some
limitations to objects and variable names. To create a composite display, create
a display in the Display Builder as usual. All public
variables that are not
mapped to substitutions will show up as properties on the composite object. If
you do not want a variable to be exposed as a property, mark it as private. For
example, you can create a display with two meters attached to two public
variables, value1 and value2. When you use this display in a composite object,
value1 and value2 will show up in the Composite category of the property sheet
for the composite object. Whatever value you enter for these will drive the
meters in your composite display. When the composite object is used in an object
grid, these properties will also show up in the iconProperties
dialog allowing you to either assigned them to values or to data columns.
The following limitations apply:
- To
variable names in composite displays:
- None of the standard composite
object property names can be used. This includes rtvName, substitutions
and any property outside of the Composite category.
- Only public variables that are not
mapped to data will show up as properties on the composite object.
- Names of all public variables used for
tabular data must have Data Type set
to Tabular.
- Composite displays can use any object
from the Object Palette, except the composite object.
- Nested composite objects
are not supported.
- The drillDownTarget and command
for objects in a composite display will take precedence over the drill down
target or command for the composite object.
|