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
Purpose: Gets and sets the BindingSource that defines the schema
Notes:



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
+ CHARACTER ClassName
+ LOGICAL CreateBindingSource
+ CHARACTER EntityJoin
+ CHARACTER EntityName
+ CHARACTER EntityTable
+ CHARACTER EntityView
+ Consultingwerk.BusinessEntityDesigner.Generator.Viewer.ISmartViewerGenerator Generator
+ System.Drawing.Font LabelFont
+ CHARACTER PackageName


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 width 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


Returns Consultingwerk.SmartComponents.Implementation.SmartBusinessEntityBindingSource
Top

PUBLIC CHARACTER ClassName


Returns CHARACTER
Top

PUBLIC LOGICAL CreateBindingSource


Returns LOGICAL
Top

PUBLIC CHARACTER EntityJoin


Returns CHARACTER
Top

PUBLIC CHARACTER EntityName


Returns CHARACTER
Top

PUBLIC CHARACTER EntityTable


Returns CHARACTER
Top

PUBLIC CHARACTER EntityView


Returns CHARACTER
Top

PUBLIC Consultingwerk.BusinessEntityDesigner.Generator.Viewer.ISmartViewerGenerator Generator


Returns Consultingwerk.BusinessEntityDesigner.Generator.Viewer.ISmartViewerGenerator
Top

PUBLIC System.Drawing.Font LabelFont


Returns System.Drawing.Font
Top

PUBLIC CHARACTER PackageName


Returns CHARACTER


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 12:56:22