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.