C# Class Habanero.Faces.Base.DefaultBOEditor

Provides an editing facility for a business object. The default editor is used by controls like GridControl to edit business objects. Where used, this class can be replaced by a custom control that inherits form IBusinessObjectEditor.
Inheritance: IBusinessObjectEditor
Show file Open project: Chillisoft/habanero.faces

Protected Properties

Property Type Description
_controlFactory IControlFactory

Public Methods

Method Description
DefaultBOEditor ( IControlFactory controlFactory ) : Habanero.Base

Constructor for DefaultBOEditor

EditObject ( IBusinessObject obj, string uiDefName ) : bool

Edits the given business object by providing a form in which the user can edit the data

EditObject ( IBusinessObject obj, string uiDefName, PostObjectEditDelegate postEditAction ) : bool

Edits the given object

Protected Methods

Method Description
CreateEditorForm ( BusinessObject bo, string uiDefName ) : IDefaultBOEditorForm

Creates a form in which a business object can be edited

CreateEditorForm ( BusinessObject bo, string uiDefName, PostObjectEditDelegate action ) : IDefaultBOEditorForm

Creates a form in which a business object can be edited

Method Details

CreateEditorForm() protected method

Creates a form in which a business object can be edited
protected CreateEditorForm ( BusinessObject bo, string uiDefName ) : IDefaultBOEditorForm
bo BusinessObject The business object to edit
uiDefName string The name of the set of ui definitions /// used to design the edit form. Setting this to an empty string /// will use a ui definition with no name attribute specified.
return IDefaultBOEditorForm

CreateEditorForm() protected method

Creates a form in which a business object can be edited
protected CreateEditorForm ( BusinessObject bo, string uiDefName, PostObjectEditDelegate action ) : IDefaultBOEditorForm
bo BusinessObject The business object to edit
uiDefName string The name of the set of ui definitions /// used to design the edit form. Setting this to an empty string /// will use a ui definition with no name attribute specified.
action PostObjectEditDelegate
return IDefaultBOEditorForm

DefaultBOEditor() public method

Constructor for DefaultBOEditor
public DefaultBOEditor ( IControlFactory controlFactory ) : Habanero.Base
controlFactory IControlFactory
return Habanero.Base

EditObject() public method

Edits the given business object by providing a form in which the user can edit the data
public EditObject ( IBusinessObject obj, string uiDefName ) : bool
obj IBusinessObject The business object to edit
uiDefName string The name of the set of ui definitions /// used to design the edit form. Setting this to an empty string /// will use a ui definition with no name attribute specified.
return bool

EditObject() public method

Edits the given object
public EditObject ( IBusinessObject obj, string uiDefName, PostObjectEditDelegate postEditAction ) : bool
obj IBusinessObject The object to edit
uiDefName string The name of the set of ui definitions /// used to design the edit form. Setting this to an empty string /// will use a ui definition with no name attribute specified.
postEditAction PostObjectEditDelegate Action to be performed when the editing is completed or cancelled. Typically used if you want to update /// a grid or a list in an asynchronous environment (E.g. to select the recently edited item in the grid)
return bool

Property Details

_controlFactory protected property

The Control Factory that is used to create the controls on this Editor.
protected IControlFactory _controlFactory
return IControlFactory