JeeWiz Home  
The Model-Driven System Builder
JeeWiz Modeler's Help File for RSA/RSM
 
Contents  >   5.  User Interfaces
 


5.2 How to Model a Page

Adding a page element to the diagram will cause a page to be created along with any relevant Forms and Action classes, but the data items that appear in the central section of most page types is modeled in a dataview. Button may be added depending on the events, menu items depend on the relationship between the pages and the look of a page depends on the architecture the application is generated against.

Pages are entered as stereotyped classes. You can do this by selecting a stereotyped class from the pallet by clicking on the Class Diagram Drawer in the palette to open it, finding the class creation section, clicking on the arrow on the right, which will bring up a menu allowing you to select a stereotyped class. Then pick "Create new page class" when placing it on the diagram.

Alternatively you can create a standard class from the same place in the palette and add a page stereotype using the Add Stereotype button in the stereotype tab of the properties view.

Stereotyping the page brings up the page properties.

The template property only needs to be filled in for a special page layout. There are only two standard page templates available, the default layout, and the page_no-form template, which excludes the central data, optionally allowing the display of an image (this is how the splash screen is formed). If you need a radically different layout for a page, or one in which you have control of absolutely everything, you can get the architect to design you a purpose built template. Be warned that this can be time consuming, and circumvents the point of using JeeWiz, which is to get a working application out fast, earning its bread and butter.

The title property is what appears at the top of the central section of the page, in the standard template.

The functionStyle adds functionality to the page allowing it to use previously constructed code. For example, a style of search on a page lets it be used as a query entry form. A style of select displays the summary fields of a list of records, one line to the record and allows you to select one which take you to another page let you view or edit the entire record you have selected.

Dataviews model the data items added to the page, and the dataview property on page is the dataview used. Some page functionStyles such as list, listadd and assoc, may link the rows edited on the screen to a related row. More on page styles in "How to Model a Styled Page" The dataview describing the related row is called the master dataview and is specified using the masterDataView property.

The menuStyle, container, linkCaption and screenPosition properties all affect menus, and the rest are down to security/access.


Links:  

Copyright © 2001-2006 New Technology / enterprise Ltd.