C# Class 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.
Afficher le fichier Open project: Chillisoft/habanero.faces

Private Properties

Свойство Type Description
DisableGrid void
EnableButtonsAndFilter void
SetupBOEditors void

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
DisableGrid ( ) : void
EnableButtonsAndFilter ( ) : void
SetupBOEditors ( IBusinessObjectCollection boCollection ) : void

Method Details

DeleteBusinessObject() public méthode

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
Résultat void

MustDeleteSelectedBusinessObject() public méthode

Returns true if IReadOnlyGridControl.ConfirmDeletion is false or if IReadOnlyGridControl.ConfirmDeletion is true and the IReadOnlyGridControl.CheckUserConfirmsDeletionDelegate returns true.
public MustDeleteSelectedBusinessObject ( ) : bool
Résultat bool

ReadOnlyGridControlManager() public méthode

Constructor for EditableGridControlManager
public ReadOnlyGridControlManager ( IReadOnlyGridControl gridControl, IControlFactory controlFactory ) : System
gridControl IReadOnlyGridControl
controlFactory IControlFactory
Résultat System

RefreshFilter() public méthode

Reapplies the current filter to the Grid.
public RefreshFilter ( ) : void
Résultat void

SetBusinessObjectCollection() public méthode

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
Résultat void