Trace: • Server-Side Trigger für Storages
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
jvx:client:gui:format_trees [2019/08/25 15:49] admin |
jvx:client:gui:format_trees [2019/08/25 15:53] admin |
||
---|---|---|---|
Line 3: | Line 3: | ||
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. | 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 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 11: | Line 10: | ||
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 51: | Line 52: | ||
else if (pDataBook == rdbSubSessionObjects) | else if (pDataBook == rdbSubSessionObjects) | ||
{ | { | ||
- | return IMAGE_SQL; | + | return IMAGE_OBJECTS; |
} | } | ||
| |