JeeWiz Home  
The Model-Driven System Builder

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


15.5 Field Object

Used on
panel
SuperclassbusinessObject:field
DescriptionA field not directly related to a business object or view placed on a panel/grid or other UI object.
Contained
Lists
1
Name  constraint
Type  businessObject:constraint
Inherited from  businessObject:field
 
2
Name  style
Type  String
Inherited from  businessObject:field
Inherited
properties
name from java:namedValue.name

description from java:interfaceField.description

template (base property)

text from java:interfaceField.text

jwpattern (base property)

type from java:namedValue.type

annotation from java:interfaceField.annotation

default from java:interfaceField.default

access from java:field.access

static from java:field.static

final from java:field.final

volatile from java:field.volatile

readonly from java:field.readonly

readable from businessObject:field.readable

writeable from businessObject:field.writeable

uid from businessObject:field.uid

 15.5.1  Property 'dontDisplay'
 15.5.2  Property 'externalName'
 15.5.3  Property 'summaryName'
 15.5.4  Property 'useOnSummary'
 15.5.5  Property 'useOnSearch'
 15.5.6  Property 'textEvent'
 15.5.7  Property 'screenPosition'
 15.5.8  Property 'uiControl'
 15.5.9  Property 'format'
 15.5.10  Property 'presentationStyle'
 15.5.11  Property 'border'
 15.5.12  Property 'childBorder'
 15.5.13  Property 'margin'
 15.5.14  Property 'childMargin'
 15.5.15  Property 'padding'
 15.5.16  Property 'childPadding'
 15.5.17  Property 'color'
 15.5.18  Property 'childColor'
 15.5.19  Property 'backgroundColor'
 15.5.20  Property 'childBackgroundColor'
 15.5.21  Property 'extraStyle'
 15.5.22  Property 'height'

15.5.1  Property 'dontDisplay'
DescriptionSet this property to prevent the field appearing on a page.

By default this value is false - so the field will appear on the page. However, the standard patterns set this value true if the type is not displayable.
Typeboolean

15.5.2  Property 'externalName'
DescriptionThis is the basis for the external name used for the field. For example, users may think of 'Order Number', whereas the field itself is ord_num (following local variable naming conventions possibly).

For input fields (i.e. one with no related attribute) the external-name defaults to the name (with spaces and capitals added to separate words).

For fields with a related attribute, the external-name defaults to
  • the data-view's name if there is one, otherwise to
  • the related-attribute's external-name if there is one, otherwise to
  • the related-attribute's name.
This can be further mapped to the actual name presented by particular interfaces. This can be done automatically in the component.properties file for the data-view-field. For example, variants of the name are available through helper methods - getExternal[XML/JavaClass/CapsAndSpaces]Name formats, which may be useful in XML or screen representations of the name.
TypeString

15.5.3  Property 'summaryName'
Description A field holding a short name used in grid headers, etc
TypeString

15.5.4  Property 'useOnSummary'
DescriptionUse-on-summary tells the standard patterns whether to use this view field on a summary list.

A summary list is shown when the view is the subject of a search (e.g. find all orders for a particular customer) which returns multiple rows.

Rather than bring back all information in an entity or data-view, the summary (based on the summary fields/attributes) is displayed. The group of all summary fields should be distinctive enough to allow the user to identify a particular record.

There is a related 'use-on-summary' property on the entity's attribute; the relationship between these two is described below.

The standard patterns construct the 'summary' of a view automatically, using the first of the following approaches that succeed:

  1. One or more fields on the view are explicitly marked 'use-on-summary'. In this case, the summary is the list of all such fields.

  2. Failing that, for data-views, the data-view-field may have a related-attribute on the initial entity that is explicitly marked as 'use-on-summary'. If there are any such data-view-fields, the summary is the list of all such fields.

  3. Failing that, for data-views, the data-view-field may have a related-attribute on the initial entity that is part of the primary key for the entity. If there are any such data-view-fields, the summary is the list of all such fields.

  4. Finally, when all else fails, all fields on the data-view are used. This may result in an interesting rendering!
Typeboolean
Defaultfalse

15.5.5  Property 'useOnSearch'
DescriptionUse-on-search tells the patterns whether to use this field on a search screen.
Typeboolean
Defaultfalse

15.5.6  Property 'textEvent'
DescriptionIf an event is entered here, when the summary text is printed in a gridline, it will form a URL that fires the event.
TypeString

15.5.7  Property 'screenPosition'
Description A numeric value indicating the position of this page or control within a group. This affects the position of the item's display on the screen, relative to other members of the group. The value is a string of 1-6 digits; the order is calculated numerically rather than alphabetically - so 25 is higher than 5. Lower-valued positions appear first. The value of '-1' indicates that the this field should not placed on the ScreenPositionList (determined by the DataView). This would be used when the specific renderer would want to handle the placing of the field rather than via the automatic rendering which is based on the ScreenPositionList. If this is not specified, then the order of controls within a group is determined by the order in the XML specification file. The order within the specification can be set if the XML is being specified directly and this field need not be specified. However, for specifications from UML design tools this may not be possible and it will be necessary to set this field to control screen order.
TypeString

15.5.8  Property 'uiControl'
Description Specifies the ui control to use for this field. If specified, this field must correctly name a UI control - see your local standards for a complete list. The standard JeeWiz options are:

TBD

If there is no value for the ui-control property, a suitable UI control for the type will be chosen.

See also ui-style, which can guide the selection process if ui-control is not specified.
TypeString

15.5.9  Property 'format'
DescriptionThe format works together with the display style at the presentation layer. It might override the date format for a textbox date or numeric, or it might override the height and width of a textarea. It is up to the UiControl as to how, or whether this property is processed.
TypeString

15.5.10  Property 'presentationStyle'
DescriptionThis is hint to the renderer to set a 'class' type style for the children components of this component - The rendering will probably (but not necessarily) be done using cascading style sheets, where this will translate into the css class attribute.
TypeString

15.5.11  Property 'border'
DescriptionThis is a hint for the renderer to indicate the style of the border for this component.
TypeString

15.5.12  Property 'childBorder'
DescriptionThis is a hint for the renderer to indicate the style of the border for the child components of this component.
TypeString

15.5.13  Property 'margin'
DescriptionThis is a hint for the render to indicate the margin required for this object (and, optionally, the spacing inbetween child components). The margin value can be a comma separated value using the convention of the first value = Top, second = Right, third = Bottom, fourth = Left, fifth = Spacing between child components. Specifiying the fifth element is a convenience to allow spacing between

for example

2,3,4,5,2 would mean a margin of 2 on the Top, 3 on the Right, 4 on the Bottom, 5 on the left and 2 inbetween child components. 2,3,4,5 would mean a margin of 2 on the Top, 3 on the Right, 4 on the Bottom and 5 on the left.
    1. would mean a margin of 4 on all borders. 4,0,0,0 would mean a margin of 4 on the Top, 0 on all other edges.
TypeString

15.5.14  Property 'childMargin'
DescriptionThis is a hint for the render to indicate the margin required for the child components of this object. The child margin value can be a comma separated value using the convention of the first value = Top, second = Right, third = Bottom, fourth = Left.

for example

2,3,4,5 would mean a margin of 2 on the Top, 3 on the Right, 4 on the Bottom and 5 on the left.
    1. would mean a margin of 4 on all borders. 4,0,0,0 would mean a margin of 4 on the Top, 0 on all other edges.
TypeString

15.5.15  Property 'padding'
DescriptionThis is a hint for the render to indicate the padding required for this object. The margin value can be a comma separated value using the convention of the first value = Top, second = Right, third = Bottom, fourth = Left.

for example

2,3,4,5 would mean a padding of 2 on the Top, 3 on the Right, 4 on the Bottom and 5 on the left.
  1. would mean a pagging of 4 on all borders. 4,0,0,0 would mean a padding of 4 on the Top, 0 on all the other edges
TypeString

15.5.16  Property 'childPadding'
DescriptionThis is a hint for the render to indicate the padding required for the child components of this object. The child padding value can be a comma separated value using the convention of the first value = Top, second = Right, third = Bottom, fourth = Left.

for example

2,3,4,5 would mean padding of 2 on the Top, 3 on the Right, 4 on the Bottom and 5 on the left.
    1. would mean padding of 4 on all borders. 4,0,0,0 would mean padding of 4 on the Top, 0 on all other edges.
TypeString

15.5.17  Property 'color'
DescriptionThis is hint to the renderer to inidicate the color to use on this component.
TypeString

15.5.18  Property 'childColor'
DescriptionThis is hint to the renderer to inidicate the color to use on this component's child components.
TypeString

15.5.19  Property 'backgroundColor'
DescriptionThis is a hint for the renderer to indicate the background color.
TypeString

15.5.20  Property 'childBackgroundColor'
DescriptionThis is a hint for the renderer to indicate the background color for the child components of this panel.
TypeString

15.5.21  Property 'extraStyle'
DescriptionThis is mechanism for the modeller to add any additional rendering (look) details into the component. How this is added will depend on the rendering itself, but for example in the JSF rendering this will be appended to the 'inlineStyle' attribute (which itself uses css style notation) of the JSF components.
TypeString

15.5.22  Property 'height'
DescriptionThis is a hint for the render to indicate the height required for this object.
TypeString
 


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