JeeWiz Home  
The Model-Driven System Builder

JeeWiz Architect's Guide
 
Contents  >   15.  'Screen' Reference
 


15.22 Widget Object

Used on
group
DescriptionUsed by any model-object that will be rendered on a page using layout information. Where objects are rendered on the page is determined by the section, the column and row number.

The section refers to a district on the page usually: top, left, centre, right, bottom.

The column refers to the column number within the section. Similarly the row refers to the row number within the section.
Contained
Lists
1
Name  style
Type  String
Description  You can specify one or more styles to give information to the code generation scripts. The meaning of the styles is up to the script writer.

The styles can be used as flags by the script calling $styleList.contains( "styleOfInterest" )

[ Currently, there is no built-in support for style="styleType=value" type semantics. This would have to be defined by each script writer. ]

Examples of the use of styles:
  • characteristics of a web page (e.g. should it be included in one of the menus)
  • whether an entity should be automatically mapped to a data-view (the 'maintain' style).
Note that styles and the 'group' property are different concepts, and therefore complimentary. Many modelling objects - such as data-views and their fields, or business methods - can be put into groups as a hint as to where to render the UI pages. Typically groups are used to define 'where' to place the meta class, whereas styles indicate how to render the object.
Unique  false
Inherited
properties
name (base property)

description (base property)

template (base property)

text (base property)

jwpattern (base property)

 15.22.1  Property 'object'
 15.22.2  Property 'column'
 15.22.3  Property 'row'
 15.22.4  Property 'halign'
 15.22.5  Property 'valign'
 15.22.6  Property 'width'
 15.22.7  Property 'height'

15.22.1  Property 'object'
DescriptionThe object which is to be rendered. This object must implement the IRenderable interface
TypeString
Requiredtrue

15.22.2  Property 'column'
DescriptionThe required column number on which the object should be rendered. The column number will be within the selected section.
Typeint
Requiredtrue

15.22.3  Property 'row'
DescriptionThe row number on which the object should be rendered. The column number will be within the selected section.
Typeint

15.22.4  Property 'halign'
DescriptionHorizontal alignment. One of "left", "centre", "center", "right". Where horizontally in the cell will the object be anchored.
TypeString
Choices left (default)
centre
center
right
Defaultleft

15.22.5  Property 'valign'
DescriptionHorizontal alignment. One of "top", "centre", "center", "right". Where horizontally in the cell will the object be anchored.
TypeString
Choices top (default)
centre
center
right
Defaulttop

15.22.6  Property 'width'
DescriptionThe absolute width of the sector in columns.
Typeint

15.22.7  Property 'height'
DescriptionThe absolute height of the sector in rows.
Typeint
 


Copyright (c) 2001-2008 New Technology/enterprise Ltd.