Maia\Builder
CLASS BuildBaseRibbon

CLASS dotr.Maia.Builder.BuildBaseRibbon INHERITS Basic

Maia ribbon builder

extends the basic builder to add methods to build a ribbon class from the BaseRibbon.cls template provided
Author:
Julian Lyndon-Smith (julian+maia@dotr.com)

Method Summary
CONSTRUCTOR (ObjectConfig p_ObjectConfig)
           create directory structure if required
VOID CardProperties (Directive p_Directive)
           create the statements required to show the fields in the card
VOID DataSchema (Directive p_Directive)
           create the statements required to create the data schema
VOID GridProperties (Directive p_Directive)
           create the statements required to show the fields in the grid
VOID RibbonGet (Directive p_Directive)
           create the statement to get the keyfield when the grid or cad is double-clicked
LONGCHAR StartBuild (LONGCHAR p_Data)
           inject generator code into the template
VOID UIAddCardArray (Directive p_Directive)
           create the statements required to add fields to the card view
VOID UIAddGridArray (Directive p_Directive)
           create the statements required to add fields to the grid view
VOID UITextDefine (Directive p_Directive)
           create the define variable statements required
VOID UITextNew (Directive p_Directive)
           create the new object statements required
 

Method Detail

CONSTRUCTOR

CONSTRUCTOR(ObjectConfig p_ObjectConfig)
create directory structure if required


CardProperties

PUBLIC VOID CardProperties(Directive p_Directive)
create the statements required to show the fields in the card

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

DataSchema

PUBLIC VOID DataSchema(Directive p_Directive)
create the statements required to create the data schema

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

GridProperties

PUBLIC VOID GridProperties(Directive p_Directive)
create the statements required to show the fields in the grid

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

RibbonGet

PUBLIC VOID RibbonGet(Directive p_Directive)
create the statement to get the keyfield when the grid or cad is double-clicked

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

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

UIAddCardArray

PUBLIC VOID UIAddCardArray(Directive p_Directive)
create the statements required to add fields to the card view

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

UIAddGridArray

PUBLIC VOID UIAddGridArray(Directive p_Directive)
create the statements required to add fields to the grid view

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

UITextDefine

PUBLIC VOID UITextDefine(Directive p_Directive)
create the define variable statements required

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

UITextNew

PUBLIC VOID UITextNew(Directive p_Directive)
create the new object statements required

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