Trace:
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
jvx:client:gui:format_trees [2019/08/25 15:48] admin created |
jvx:client:gui:format_trees [2019/08/25 15:51] admin |
||
---|---|---|---|
Line 2: | Line 2: | ||
~~Title: Formatting tree nodes~~ | ~~Title: Formatting tree nodes~~ | ||
- | If you want to format tree nodes, simply use the cell format feature as described [[jvx:client:gui:format_tables|here]]. The tree formatting works like the table formatting. The only difference is the node icon, because the tree has different states for nodes, like expanded or leaf. | + | If you want to format tree nodes, simply use the cell format feature as described [[jvx:client:gui:format_tables|here]]. The tree formatting works like the table formatting. |
+ | |||
+ | The only difference is the node icon, because the tree has different states for nodes, like expanded or leaf. | ||
The icon can be handled using **INodeFormatter**. | The icon can be handled using **INodeFormatter**. | ||
Line 9: | Line 11: | ||
Our GUI contains a tree which shows 3 layers. The first layer contains all available sessions, the second layer all sub sessions of the selected session and the third layer contains all objects of the selected sub session. | Our GUI contains a tree which shows 3 layers. The first layer contains all available sessions, the second layer all sub sessions of the selected session and the third layer contains all objects of the selected sub session. | ||
+ | |||
+ | The following lines show the definition and use of node formatting: | ||
<file java> | <file java> | ||
/** Session image. */ | /** Session image. */ | ||
- | private static final UIImage IMAGE_SESSION = UIImage.getImage("/com/sibvisions/apps/monitoring/images/session.png"); | + | private static final UIImage IMAGE_SESSION = UIImage.getImage("/com/sibvisions/apps/demo/images/session.png"); |
/** Sub Session image. */ | /** Sub Session image. */ | ||
- | private static final UIImage IMAGE_SUBSESSION = UIImage.getImage("/com/sibvisions/apps/monitoring/images/subsession.png"); | + | private static final UIImage IMAGE_SUBSESSION = UIImage.getImage("/com/sibvisions/apps/demo/images/subsession.png"); |
/** Object image. */ | /** Object image. */ | ||
- | private static final UIImage IMAGE_OBJECTS = UIImage.getImage("/com/sibvisions/apps/monitoring/images/objects.png"); | + | private static final UIImage IMAGE_OBJECTS = UIImage.getImage("/com/sibvisions/apps/demo/images/objects.png"); |
/** the master sessions. */ | /** the master sessions. */ | ||
Line 49: | Line 53: | ||
else if (pDataBook == rdbSubSessionObjects) | else if (pDataBook == rdbSubSessionObjects) | ||
{ | { | ||
- | return IMAGE_SQL; | + | return IMAGE_OBJECTS; |
} | } | ||
| |