Apama 10.3 | Apama Documentation | Building and Using Apama Dashboards | Building Dashboard Clients | Reusing Dashboard Components | Working with multiple display panels | Using old tags to configure the panels in a window | Using tree panels
Using tree panels
The tags described in this topic are deprecated. They will be removed in a future release. You should change to the new tags. See Using new tags to configure the panels in a window.
With tree panels, you define the contents of a tree-structured navigation pane by specifying an xml file (navtree.xml in this example) as the value of the navtreedata attribute in an RTViewNavTreePanel element:
<?xml version="1.0" ?>
<panels xmlns="www.sl.com" version="1.0">
  <RTViewPanel region="north" name="title_panel" display="title_panel"/>
  <CardPanel region="center">
    <RtViewPanel title=" Overview " name="main" display="main_panel"/>
  <RtViewNavTreePanel region="west" width="192" height="480"
     lineStyle="Angled" navtreedata="navtree.xml">
The file that you specify for the navtreedata attribute must be in XML, and must start with the following:
<?xml version="1.0" ?>
<navtree xmlns="www.sl.com" version="1.0">
The navtreedata file must end with the following:
The following tags are supported:
Add a node to the navigation tree.
Set the font used in the navigation tree.
Set font and background color in the navigation tree. Specify in hexadecimal RGB format: # rrggbb (for example, #00FFFF for cyan) or the following: black, white, red, blue, green, yellow, cyan, magenta, gray, lightGray, darkGray, orange, pink.
The node tag supports the following attributes:
Name of the display (.rtv) file.
Label for this node in the navigation tree. Defaults to display name if no label is set. Specify the font and color of the label using HTML. For example, to draw a green label using a 50-point italic monospaced font:
label="<html><p style=
Your Label Goes Here"
HTML font settings specified here override treecolor and treefont settings for this node.
If the attribute value is keepalive, the display is kept in memory the entire time the application is running.
Substitutions to apply to the display. 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 / :
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 any of the following characters:
: | . tab space , = < > ' " & / \ { } [ ] ( )
The treefont tag supports the following attributes:
Specifies the font family name.
Can be set to plain, bold, italic, or bold italic.
Font point size.
The treecolor tag supports the following attributes:
Specifies the font color for tree labels.
Specifies the background color for the tree and non-selected tree labels.
Specifies the background color for a selected tree label.
Here is an example:
<?xml version="1.0" ?>
<navtree xmlns="www.sl.com" version="1.0">
<node label="Nav Tree Example">
  <node label="Main Displays" display="main_panel">
    <node label="100 Displays">
      <node label="Panel 101" mode="keepalive" display="med_panel"
      <node label="Panel 102" mode="keepalive" display="med_panel"
      <node label="Panel 103" mode="keepalive" display="med_panel"
    <node label="200 Displays">
      <node label="Panel 201" display="med_panel" subs="$title:201">
      <node label="Panel 202" display="med_panel" subs="$title:202">
      <node label="Panel 203" display="med_panel" subs="$title:203">
Nodes can be nested. You can only specify one top-level node.

Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.