Maia\Builder
CLASS BuildBaseUpdate

CLASS dotr.Maia.Builder.BuildBaseUpdate INHERITS Basic

builder for the update screens for an object

2 classes are created, one for the base which contains all the update and assign statements and one that inherits the base so that visual customizations can be implemented
Author:
Julian Lyndon-Smith (julian+maia@dotr.com)

Field Summary
INTEGER NumFields PROTECTED
           
 

Method Summary
CONSTRUCTOR (ObjectConfig p_ObjectConfig)
           
LONGCHAR StartBuild (LONGCHAR p_Data)
           inject generator code into the template
VOID UIAssignToObject (Directive p_Directive)
           assign UI component screen values to properties
VOID UIAssignToUI (Directive p_Directive)
           assign properties to UI component screen values
VOID UISetProperties (Directive p_Directive)
           get statement for define variable
VOID UITextAddControl (Directive p_Directive)
           get statement for adding controls
VOID UITextBeginInit (Directive p_Directive)
           get statement for begininit
VOID UITextDefine (Directive p_Directive)
           get statement for define variable
VOID UITextEndInit (Directive p_Directive)
           get statement for endinit
VOID UITextNew (Directive p_Directive)
           get statement for new object
 

Field Detail

NumFields

INTEGER PROTECTED

Method Detail

CONSTRUCTOR

CONSTRUCTOR(ObjectConfig p_ObjectConfig)

StartBuild

PUBLIC OVERRIDE LONGCHAR StartBuild(LONGCHAR p_Data)
inject generator code into the template

any code manually placed in the initializecomponents method is overwritten this method takes the template, looks for the appropriate places and injects generator code into the template, after it has been read from disk this makes sure that no code is lost if the template is loaded into the visual designer
Parameters:
p_Data - : code for the template
Returns:
longchar : the modified template

UIAssignToObject

PUBLIC VOID UIAssignToObject(Directive p_Directive)
assign UI component screen values to properties

takes all of the field values and assigns them to the appropriate property. The standard used for this is that all screen components are given the same name as the property itself, with "ui" prepended
Parameters:
p_Directive - : holds the directive name and all parameters

UIAssignToUI

PUBLIC VOID UIAssignToUI(Directive p_Directive)
assign properties to UI component screen values

takes properties and assigns them to the appropriate field values The standard used for this is that all screen components are given the same name as the property itself, with "ui" prepended
Parameters:
p_Directive - : holds the directive name and all parameters

UISetProperties

PUBLIC VOID UISetProperties(Directive p_Directive)
get statement for define variable

this is the "chunky" part. All properties are drawn according to the parameters defined in this properties update screen. All positions are calculated relative to the previously drawn property. Labels are also defined automatically for each property unless the property does not require them (radio-sets, or checkboxes for example)
Parameters:
p_Directive - : holds the directive name and all parameters

UITextAddControl

PUBLIC VOID UITextAddControl(Directive p_Directive)
get statement for adding controls

Parameters:
p_Directive - : holds the directive name and all parameters

UITextBeginInit

PUBLIC VOID UITextBeginInit(Directive p_Directive)
get statement for begininit

Parameters:
p_Directive - : holds the directive name and all parameters

UITextDefine

PUBLIC VOID UITextDefine(Directive p_Directive)
get statement for define variable

Parameters:
p_Directive - : holds the directive name and all parameters

UITextEndInit

PUBLIC VOID UITextEndInit(Directive p_Directive)
get statement for endinit

Parameters:
p_Directive - : holds the directive name and all parameters

UITextNew

PUBLIC VOID UITextNew(Directive p_Directive)
get statement for new object

Parameters:
p_Directive - : holds the directive name and all parameters