C# Класс Habanero.Faces.Base.GridBaseInitialiser

Initialises the structure of a IGridBase. If a ClassDef is provided, the grid is initialised using the UI definition provided for that class. If no ClassDef is provided, it is assumed that the grid will be set up in code by the developer. This only initialises the GridBase i.e. the Columns on the Grid and does not initialise things like the FilterControlControl.
Наследование: IGridInitialiser
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CreateColumnForUIDef void
CreateCustomColumn IDataGridViewColumn
CreateIDColumn void
CreateStandardColumn IDataGridViewColumn
GetGridDef IUIGrid
GetGridIDColumnName string
GetIDColumn IDataGridViewColumn
GetPropDef IPropDef
GetPropertyType System.Type
SetUpGridColumns void
SetupColumnWithDefParameters void
SetupDateTimeWithParameters void

Открытые методы

Метод Описание
GridBaseInitialiser ( IGridBase gridBase, IControlFactory controlFactory ) : System

Initialise the grid with the appropriate control factory.

InitialiseGrid ( ) : void

Initialises the grid without a ClassDef. This is typically used where the columns are set up manually for purposes such as adding a column with images to indicate the state of the object or adding a column with buttons/links.
The grid must already have at least one column added. At least one column must be a column with the name "HABANERO_OBJECTID", which is used to synchronise the grid with the business objects.

InitialiseGrid ( IClassDef classDef ) : void

Initialises the grid with the default UI definition for the class, as provided in the ClassDef

InitialiseGrid ( IClassDef classDef, IUIGrid uiGridDef, string uiDefName ) : void

Initialises the grid with a given alternate UI definition for the class

InitialiseGrid ( IClassDef classDef, string uiDefName ) : void

Initialises the grid with a specified alternate UI definition for the class, as provided in the ClassDef

Защищенные методы

Метод Описание
SetupCurrencyWithParameters ( Type propertyType, IUIGridColumn gridColDef, IDataGridViewColumn column ) : void

Приватные методы

Метод Описание
CreateColumnForUIDef ( IClassDef classDef, IUIGrid gridDef ) : void
CreateCustomColumn ( IUIGridColumn columnDef ) : IDataGridViewColumn
CreateIDColumn ( ) : void
CreateStandardColumn ( string columnName, string columnHeader ) : IDataGridViewColumn
GetGridDef ( ClassDef classDef, string uiDefName ) : IUIGrid
GetGridIDColumnName ( ) : string
GetIDColumn ( ) : IDataGridViewColumn
GetPropDef ( IClassDef classDef, IUIGridColumn gridColumn ) : IPropDef
GetPropertyType ( IClassDef classDef, string propertyName ) : Type
SetUpGridColumns ( IClassDef classDef, IUIGrid gridDef ) : void
SetupColumnWithDefParameters ( IDataGridViewColumn col, IUIGridColumn gridColDef, Type propertyType ) : void
SetupDateTimeWithParameters ( Type propertyType, IUIGridColumn gridColDef, IDataGridViewColumn col ) : void

Описание методов

GridBaseInitialiser() публичный Метод

Initialise the grid with the appropriate control factory.
public GridBaseInitialiser ( IGridBase gridBase, IControlFactory controlFactory ) : System
gridBase IGridBase
controlFactory IControlFactory
Результат System

InitialiseGrid() публичный Метод

Initialises the grid without a ClassDef. This is typically used where the columns are set up manually for purposes such as adding a column with images to indicate the state of the object or adding a column with buttons/links.
The grid must already have at least one column added. At least one column must be a column with the name "HABANERO_OBJECTID", which is used to synchronise the grid with the business objects.
Thrown in the case where the columns /// have not already been defined for the grid Thrown in the case where the grid has already been initialised
public InitialiseGrid ( ) : void
Результат void

InitialiseGrid() публичный Метод

Initialises the grid with the default UI definition for the class, as provided in the ClassDef
public InitialiseGrid ( IClassDef classDef ) : void
classDef IClassDef The ClassDef used to initialise the grid
Результат void

InitialiseGrid() публичный Метод

Initialises the grid with a given alternate UI definition for the class
public InitialiseGrid ( IClassDef classDef, IUIGrid uiGridDef, string uiDefName ) : void
classDef IClassDef The Classdef used to initialise the grid
uiGridDef IUIGrid The that specifies the grid
uiDefName string The name of the
Результат void

InitialiseGrid() публичный Метод

Initialises the grid with a specified alternate UI definition for the class, as provided in the ClassDef
public InitialiseGrid ( IClassDef classDef, string uiDefName ) : void
classDef IClassDef The Classdef used to initialise the grid
uiDefName string The name of the UI definition
Результат void

SetupCurrencyWithParameters() защищенный статический Метод

protected static SetupCurrencyWithParameters ( Type propertyType, IUIGridColumn gridColDef, IDataGridViewColumn column ) : void
propertyType System.Type
gridColDef IUIGridColumn
column IDataGridViewColumn
Результат void