Getting Even Further with Spring RCP (1)
In this part, we'll go a few steps further. We'll get acquainted with the "CompositeForm" class, which we'll use to create two different layouts for changing our data, as shown in the two screenshots below, first a tabbed view and then a tree-based hierarchical view:
The cool thing about the above two dialogs is that the difference between them is only one line of code.
After that, we'll change the table display of our data to a tree hierarchy:
Finally, we'll look at some other ways of presenting our data, such as these:

Again, the difference between the two data views above is one line of code!
Table of Contents
- Creating a Composite Dialog
- Replacing the Table with a Tree
- Integrating Flexible Views
- Constructing a Node Hierarchy
Note: The completed example, from the end of the second section of this part, is available as a NetBeans project, as part of the Spring RCP Tooling plugin in the NetBeans Plugin Portal, from version 1.4 of the plugin onwards. Open the New Project wizard (Ctrl-Shift-N) and you should find "Spring RCP Tutorial Part 2" in the "Samples | Spring Rich Client" category. The sample "Spring RCP Tutorial Part 3" provides the code for the second part of this article, which discusses some alternative explorer views that you could use to display your data to the user.
| Attachment | Size |
|---|---|
| figure-1.png | 23.7 KB |
| figure-2.png | 27.1 KB |
| figure-3.png | 17.91 KB |
| figure-4.png | 20.39 KB |
| figure-5.png | 12.4 KB |
| figure-6.png | 36.5 KB |
| figure-7.png | 24.6 KB |
| figure-8.png | 43.48 KB |
- Login or register to post comments
- 8586 reads
- Printer-friendly version
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)









