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.
ファイルを表示 Open project: Chillisoft/habanero.faces

Private Properties

Property Type Description
DisableGrid void
EnableButtonsAndFilter void
SetupBOEditors void

Public Methods

Method 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

Method Description
DisableGrid ( ) : void
EnableButtonsAndFilter ( ) : void
SetupBOEditors ( IBusinessObjectCollection boCollection ) : void

Method Details

DeleteBusinessObject() public method

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
return void

MustDeleteSelectedBusinessObject() public method

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

ReadOnlyGridControlManager() public method

Constructor for EditableGridControlManager
public ReadOnlyGridControlManager ( IReadOnlyGridControl gridControl, IControlFactory controlFactory ) : System
gridControl IReadOnlyGridControl
controlFactory IControlFactory
return System

RefreshFilter() public method

Reapplies the current filter to the Grid.
public RefreshFilter ( ) : void
return void

SetBusinessObjectCollection() public method

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
return void