C# Класс 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.
Наследование: IBusinessObjectEditor
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_controlFactory IControlFactory

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

Метод Описание
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

Защищенные методы

Метод Описание
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

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

CreateEditorForm() защищенный Метод

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.
Результат IDefaultBOEditorForm

CreateEditorForm() защищенный Метод

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
Результат IDefaultBOEditorForm

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

Constructor for DefaultBOEditor
public DefaultBOEditor ( IControlFactory controlFactory ) : Habanero.Base
controlFactory IControlFactory
Результат Habanero.Base

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

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.
Результат bool

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

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)
Результат bool

Описание свойств

_controlFactory защищенное свойство

The Control Factory that is used to create the controls on this Editor.
protected IControlFactory _controlFactory
Результат IControlFactory