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

This manager groups common logic for IEditableGridControl objects. Do not use this object in working code - rather call CreateEditableGridControl in the appropriate control factory.
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
DisableGrid void
EnableButtonsAndFilter void
SetupBOEditors void

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

Метод Описание
DeleteBusinessObject ( IBusinessObject selectedBo ) : void

Deletes the selectedBo using the IReadOnlyGridControl.BusinessObjectDeletor. Rolls back the delete and notifies the user if any errors occur

MustDeleteSelectedBusinessObject ( ) : bool

Returns true if IReadOnlyGridControl.ConfirmDeletion is false or if IReadOnlyGridControl.ConfirmDeletion is true and the IReadOnlyGridControl.CheckUserConfirmsDeletionDelegate returns true.

ReadOnlyGridControlManager ( IReadOnlyGridControl gridControl, IControlFactory controlFactory ) : System

Constructor for EditableGridControlManager

RefreshFilter ( ) : void

Reapplies the current filter to the Grid.

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.

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

Метод Описание
DisableGrid ( ) : void
EnableButtonsAndFilter ( ) : void
SetupBOEditors ( IBusinessObjectCollection boCollection ) : void

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

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

Deletes the selectedBo using the IReadOnlyGridControl.BusinessObjectDeletor. Rolls back the delete and notifies the user if any errors occur
public DeleteBusinessObject ( IBusinessObject selectedBo ) : void
selectedBo IBusinessObject
Результат void

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

Returns true if IReadOnlyGridControl.ConfirmDeletion is false or if IReadOnlyGridControl.ConfirmDeletion is true and the IReadOnlyGridControl.CheckUserConfirmsDeletionDelegate returns true.
public MustDeleteSelectedBusinessObject ( ) : bool
Результат bool

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

Constructor for EditableGridControlManager
public ReadOnlyGridControlManager ( IReadOnlyGridControl gridControl, IControlFactory controlFactory ) : System
gridControl IReadOnlyGridControl
controlFactory IControlFactory
Результат System

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

Reapplies the current filter to the Grid.
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 business object collection /// to be shown in the grid
Результат void