Attribute | Mand. | Description | Default |
id | yes | Identifier of the tree. | |
template | no | TREE.template | |
label | no | Label of the tree. | |
controller | no | Reference of the controller that manages the tree (i.e. handles user demands and refresh content). | |
selectionMode | no | Selection mode of the nodes of the tree. The following modes are managed: NONE No selection is possible, SINGLE Selection of only one node at a time, MULTIPLESelection of several nodes at a time, SENSITIVE Selection of only a node at a time with selection of hyperlink type |
SINGLE |
selectionType | no | Selection typr of the nodes of the tree. The following types are managed: ALL All the nodes are selectable, LEAVES_ONLY Only leaf nodes are selectable |
ALL |
isContext | no | Indicates if the tree is the context of an other element. | false |
activeNode | no | Gives the last node used in the tree so as to keep it visible during the next displaying. Used internally for scrolling problems. |
|
font | no | Font of the tree. | |
color | no | Background color of the tree. | |
fontColor | no | TREE.fontColor | |
selectedColor | no | Color used for selected nodes. | |
selectedFontColor | no | Color used for labels of selected nodes. |
<!ELEMENT TREE (TREE_NODE?, CONSTRAINT?, DATA*)> |
Element | Mand. | Mult. | Description |
TREE_NODE | no | no | Root node of the tree. |
CONSTRAINT | no | no | Positioning constraint of the tree. |
DATA | no | yes | TREE.DATA |
<!-- Tree with 4 levels (networks, multiplexers, maps, ports) --> <TREE id="tree"> <TREE_NODE id="reseaux" label="Networks" open='true'> <TREE_NODE id="res1" label="Network 1" selected="true"/> <TREE_NODE id="res2" label=" Network 2" open='false'> <TREE_NODE id="mult21" label="Multiplexer 2/1"/> </TREE_NODE> <TREE_NODE id="res3" label=" Network 3" open='true'> <TREE_NODE id="mult31" label="Multiplexer 3/1"> <TREE_NODE id="carte310" label="Card 3/1.0"/> <TREE_NODE id="carte311" label="Card 3/1.1"> <TREE_NODE id="port311" label="Port 3/1.1.0"/> <TREE_NODE id="port311" label="Port 3/1.1.1"/> </TREE_NODE> </TREE_NODE> <TREE_NODE id="mult32" label="Multiplexer 3/2"> <TREE_NODE id="carte320" label="Card 3/2.0"/> </TREE_NODE> </TREE_NODE> </TREE_NODE> </TREE> |
![]() |