C# Класс Habanero.Faces.Win.EditableGridControlWin

Provides a combination of editable grid, filter and buttons used to edit a collection of business objects
Наследование: UserControlWin, IEditableGridControl
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Buttons_CancelClicked void
Buttons_SaveClicked void
FilterControl_OnFilter void
Grid_OnBusinessObjectSelected void
InitialiseButtons void
InitialiseFilterControl void

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

Метод Описание
Clear ( ) : void

Clears the business object collection and the rows in the data table

EditableGridControlWin ( ) : System

Constructs a new instance of a EditableGridControlWin. This uses the IControlFactory from the GlobalUIRegistry to construct the control.

EditableGridControlWin ( IControlFactory controlFactory ) : System

Constructs a new instance of a EditableGridControlWin.

GetBusinessObjectAtRow ( int row ) : IBusinessObject

Returns the business object at the specified row number

GetBusinessObjectCollection ( ) : IBusinessObjectCollection

Returns the IBusinessObjectCollection that has been set for this IGridControl.

Initialise ( IClassDef classDef ) : void

Initiliases the grid structure using the default UI class definition (implicitly named "default")

Initialise ( IClassDef classDef, IUIGrid gridDef, string uiDefName ) : void

Initialises the grid structure using the given UI class definition

Initialise ( IClassDef classDef, string uiDefName ) : void

Initialises the grid structure using the specified UI class definition

RefreshFilter ( ) : void

Refresh the Filter.

SetBusinessObjectCollection ( IBusinessObjectCollection boCollection ) : void

Sets the business object collection to display. Loading of the collection needs to be done before it is assigned to the grid. This method assumes a default UI definition is to be used, that is a 'ui' element without a 'name' attribute.

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

Метод Описание
Buttons_CancelClicked ( object sender, EventArgs e ) : void
Buttons_SaveClicked ( object sender, EventArgs e ) : void
FilterControl_OnFilter ( object sender, EventArgs e ) : void
Grid_OnBusinessObjectSelected ( object sender, Habanero.Base.BOEventArgs e ) : void
InitialiseButtons ( ) : void
InitialiseFilterControl ( ) : void

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

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

Clears the business object collection and the rows in the data table
public Clear ( ) : void
Результат void

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

Constructs a new instance of a EditableGridControlWin. This uses the IControlFactory from the GlobalUIRegistry to construct the control.
public EditableGridControlWin ( ) : System
Результат System

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

Constructs a new instance of a EditableGridControlWin.
public EditableGridControlWin ( IControlFactory controlFactory ) : System
controlFactory IControlFactory The to use to construct the control.
Результат System

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

Returns the business object at the specified row number
public GetBusinessObjectAtRow ( int row ) : IBusinessObject
row int The row number in question
Результат IBusinessObject

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

Returns the IBusinessObjectCollection that has been set for this IGridControl.
public GetBusinessObjectCollection ( ) : IBusinessObjectCollection
Результат IBusinessObjectCollection

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

Initiliases the grid structure using the default UI class definition (implicitly named "default")
public Initialise ( IClassDef classDef ) : void
classDef IClassDef The class definition of the business objects shown in the grid
Результат void

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

Initialises the grid structure using the given UI class definition
public Initialise ( IClassDef classDef, IUIGrid gridDef, string uiDefName ) : void
classDef IClassDef The class definition of the business objects shown in the grid
gridDef IUIGrid The grid definition to use
uiDefName string The name of the grid definition.
Результат void

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

Initialises the grid structure using the specified UI class definition
public Initialise ( IClassDef classDef, string uiDefName ) : void
classDef IClassDef The class definition of the business objects shown in the grid
uiDefName string The UI definition with the given name
Результат void

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

Refresh the Filter.
public RefreshFilter ( ) : void
Результат void

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

Sets the business object collection to display. Loading of the collection needs to be done before it is assigned to the grid. This method assumes a default UI definition is to be used, that is a 'ui' element without a 'name' attribute.
public SetBusinessObjectCollection ( IBusinessObjectCollection boCollection ) : void
boCollection IBusinessObjectCollection The new business object collection /// to be shown in the grid
Результат void