Namespace: Consultingwerk.BusinessEntityDesigner.Generator.Viewer
Class 
SmartViewerBuilder Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:SmartViewerBuilder
Purpose:Initializes IControlGenerator instances for the ISmartViewerGenerator
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sun Oct 21 11:16:31 CEST 2012



Top Method Summary
Options Name Purpose
# AssignEvents (ViewerFieldSpec, IControlGenerator) Assigns the events form the Viewer Field Spec to the Editor
# INTEGER ControlHeight (Object) Returns the Height of the given control generator instance
# FindContainedControls () Iterates the List of Controls and checks if controls are surrounded by a GroupBox
+ CHARACTER Generate (CharacterList, CharacterDictionary) Generates the SmartViewer
+ CHARACTER Generate (ListViewerFieldSpec) Generates the SmartViewer based on a List of ViewerFieldSpec objects
# Progress.Data.ColumnPropDesc GetColumn (character) Returns the ColumnProp Desc for the given Column
# LOGICAL PointIsInRectangle (integer, integer, integer, integer, integer, integer) Verifies if a Point is in a Rectangle

Top Constructor Summary
Options Name Purpose
+ SmartViewerBuilder () Constructor for the SmartViewerBuilder class

Top Property Summary
Options Name Purpose
+ Consultingwerk.SmartComponents.Implementation.SmartBusinessEntityBindingSource BindingSource Gets and sets the BindingSource that defines the schema
+ CHARACTER ClassName Gets and sets the Class Name for the generated SmartViewerControl
+ LOGICAL CreateBindingSource Gets and sets if the generated User Control should contain a Binding Source or not
+ CHARACTER EntityJoin Gets and sets the EntityJoin property of the SmartBusinessEntityBindingSource
+ CHARACTER EntityName Gets and sets the EntityName property of the SmartBusinessEntityBindingSource
+ CHARACTER EntityTable Gets and sets the EntityTable property of the SmartBusinessEntityBindingSource
+ CHARACTER EntityView Gets and sets the EntityView property of the SmartBusinessEntityBindingSource
+ Consultingwerk.BusinessEntityDesigner.Generator.Viewer.ISmartViewerGenerator Generator Gets and sets the Generator instance
+ CHARACTER PackageName Gets and sets the Class Name for the generated SmartViewerControl


Method Detail
Top

PROTECTED AssignEvents (ViewerFieldSpec, IControlGenerator)

Purpose: Assigns the events form the Viewer Field Spec to the Editor
Notes:

Parameters:
poViewerFieldSpec Consultingwerk.BusinessEntityDesigner.Generator.Viewer.ViewerFieldSpec
The viewer field spec
poControlGenerator Consultingwerk.BusinessEntityDesigner.Generator.IControlGenerator
The reference to the control generator
Top

PROTECTED INTEGER ControlHeight (Object)

Purpose: Returns the Height of the given control generator instance
Notes:

Parameters:
poControl Progress.Lang.Object
The Control generator instance to return the height for
Returns INTEGER
The height used for the generated control
Top

PROTECTED FindContainedControls ()

Purpose: Iterates the List of Controls and checks if controls are surrounded
by a GroupBox
Notes:

Top

PUBLIC CHARACTER Generate (CharacterList, CharacterDictionary)

Purpose: Generates the SmartViewer
Notes: This version of the method is used by the Business Entity Designer
plugin to generate a viewer

Parameters:
poColumns Consultingwerk.Framework.Collections.CharacterList
The list of Columns to add
poCustomControlNames Consultingwerk.Framework.Collections.CharacterDictionary
The dictionary of custom control names in the Business Entity Design
Returns CHARACTER
The file name of the generated SmartViewerControl
Top

PUBLIC CHARACTER Generate (ListViewerFieldSpec)

Purpose: Generates the SmartViewer based on a List of ViewerFieldSpec objects
Notes: This version of the Generate method is used by tools like the AblFrameMigrationForm

Parameters:
poList Consultingwerk.BusinessEntityDesigner.Generator.Viewer.ListViewerFieldSpec
The list of ViewerFieldSpec objects to add
Returns CHARACTER
The file name of the generated SmartViewerControl
Top

PROTECTED Progress.Data.ColumnPropDesc GetColumn (character)

Purpose: Returns the ColumnProp Desc for the given Column
Notes:

Parameters:
pcColumnName CHARACTER
Returns Progress.Data.ColumnPropDesc
The Progress.Data.ColumnPropDesc for the named Column
Top

PROTECTED LOGICAL PointIsInRectangle (integer, integer, integer, integer, integer, integer)

Purpose: Verifies if a Point is in a Rectangle
Notes:

Parameters:
piPointLeft INTEGER
The left coordinate of the point
piPointTop INTEGER
The top coordinate of the point
piRectLeft INTEGER
The left coordinate of the point
piRectTop INTEGER
The top coordinate of the point
piRectWidth INTEGER
The witdh of the point
piRectHeight INTEGER
The height of the point
Returns LOGICAL
Logical value indicating if the point is located within the rectangle


Constructor Detail
Top

PUBLIC SmartViewerBuilder ()

Purpose: Constructor for the SmartViewerBuilder class
Notes:



Property Detail
Top

PUBLIC Consultingwerk.SmartComponents.Implementation.SmartBusinessEntityBindingSource BindingSource

Purpose: Gets and sets the BindingSource that defines the schema
Notes:

Returns Consultingwerk.SmartComponents.Implementation.SmartBusinessEntityBindingSource
Top

PUBLIC CHARACTER ClassName

Purpose: Gets and sets the Class Name for the generated SmartViewerControl
Notes:

Returns CHARACTER
Top

PUBLIC LOGICAL CreateBindingSource

Purpose: Gets and sets if the generated User Control should contain a
Binding Source or not
Notes:

Returns LOGICAL
Top

PUBLIC CHARACTER EntityJoin

Purpose: Gets and sets the EntityJoin property of the SmartBusinessEntityBindingSource
Notes:

Returns CHARACTER
Top

PUBLIC CHARACTER EntityName

Purpose: Gets and sets the EntityName property of the SmartBusinessEntityBindingSource
Notes:

Returns CHARACTER
Top

PUBLIC CHARACTER EntityTable

Purpose: Gets and sets the EntityTable property of the SmartBusinessEntityBindingSource
Notes:

Returns CHARACTER
Top

PUBLIC CHARACTER EntityView

Purpose: Gets and sets the EntityView property of the SmartBusinessEntityBindingSource
Notes:

Returns CHARACTER
Top

PUBLIC Consultingwerk.BusinessEntityDesigner.Generator.Viewer.ISmartViewerGenerator Generator

Purpose: Gets and sets the Generator instance
Notes:

Returns Consultingwerk.BusinessEntityDesigner.Generator.Viewer.ISmartViewerGenerator
Top

PUBLIC CHARACTER PackageName

Purpose: Gets and sets the Class Name for the generated SmartViewerControl
Notes:

Returns CHARACTER


©2006-2016 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.08.2016 08:25:57