Web & desktop interfaces
In classical software applications, in most cases certain areas of the user interface should remain permanently visible, e.g. a navigation or a status bar, while the individual views of the application can be exchanged. To achieve this behavior, a layout can be created that includes this status bar. Then only the view part is replaced in this layout without affecting the status bar.
-
Insert a new RapidClipse project.
-
Open MainLayout.java and click on Properties > Routing > Route and then click on to make the layout non-routable.
-
After that put in the same category Is Router Layout.
-
Then insert a HorizontalLayout and set Toolbox > Constraints > Width to 100%.
-
Then set Properties > Object > DefaultVerticalComponentAlignment to CENTER
-
Then add your desired number of e.g. Buttons or RouterLinks into the HorizontalLayout (Our Statusbar).
-
Then click Save.
-
Now create a new GUI element and name it MainView.
-
Then click on Properties > Routing > Route and then enter a name for the route e.g. home
-
Then select at Properties > Routing > Parent Layout MainLayout.java
-
Now add a few components to the MainView.
-
Click Save.
Now every view that specifies MainLayout as Parent Layout has the same status bar.