C# Класс Habanero.Faces.VWG.DefaultBOEditorFormVWG

Provides a form used to edit business objects. This form will usually be constructed using a UI Form definition provided in the class definitions. The appropriate UI definition is typically set in the constructor.
Наследование: FormVWG, IDefaultBOEditorForm
Показать файл Открыть проект

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

Свойство Тип Описание
_bo BusinessObject
_panelInfo IPanelInfo

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

Метод Описание
DefaultBOEditorFormVWG ( BusinessObject bo, string uiDefName, IControlFactory controlFactory ) : System

Constructs the DefaultBOEditorFormVWG class with the specified BusinessObject, uiDefName and IControlFactory.

DefaultBOEditorFormVWG ( BusinessObject bo, string uiDefName, IControlFactory controlFactory, GroupControlCreator creator ) : System

Constructs the DefaultBOEditorFormVWG class with the specified businessObject, uiDefName and post edit action.

DefaultBOEditorFormVWG ( BusinessObject bo, string uiDefName, IControlFactory controlFactory, PostObjectEditDelegate postObjectEditAction ) : System

Constructs the DefaultBOEditorFormVWG class with the specified businessObject, uiDefName and post edit action.

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

Метод Описание
CreateLayout ( ) : void

Sets all the controls up in a layout manager. By default uses the border layout manager with the editor control centre and the buttons south.

CreateSaveTransaction ( ) : ITransactionCommitter

Creates a transaction Committer with the Business Object added.

SetupFormSize ( IUIForm def ) : void

Sets up the forms size based on the BOPanel and the Buttons.

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

Метод Описание
CancelButtonHandler ( object sender, EventArgs e ) : void

A handler to respond when the "Cancel" button has been pressed. Any unsaved edits are cancelled and the dialog is closed.

CancelEditsToBusinessObject ( ) : bool
FocusOnFirstControl ( ) : void
IDefaultBOEditorForm ( ) : bool

Pops the form up in a modal dialog. If the BO is successfully edited and saved, returns true, else returns false.

OKButtonHandler ( object sender, EventArgs e ) : void

A handler to respond when the "OK" button has been pressed. All changes are committed to the database and the dialog is closed.

OnClosing ( object sender, CancelEventArgs e ) : void
SafeCloseForm ( ) : void

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

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

Sets all the controls up in a layout manager. By default uses the border layout manager with the editor control centre and the buttons south.
protected CreateLayout ( ) : void
Результат void

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

Creates a transaction Committer with the Business Object added.
protected CreateSaveTransaction ( ) : ITransactionCommitter
Результат ITransactionCommitter

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

Constructs the DefaultBOEditorFormVWG class with the specified BusinessObject, uiDefName and IControlFactory.
public DefaultBOEditorFormVWG ( BusinessObject bo, string uiDefName, IControlFactory controlFactory ) : System
bo BusinessObject The business object to represent
uiDefName string The name of the ui def to use.
controlFactory IControlFactory The to use for creating the Editor form controls
Результат System

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

Constructs the DefaultBOEditorFormVWG class with the specified businessObject, uiDefName and post edit action.
public DefaultBOEditorFormVWG ( BusinessObject bo, string uiDefName, IControlFactory controlFactory, GroupControlCreator creator ) : System
bo BusinessObject The business object to represent
uiDefName string The name of the ui def to use.
controlFactory IControlFactory The to use for creating the Editor form controls
creator GroupControlCreator The Creator used to Create the Group Control.
Результат System

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

Constructs the DefaultBOEditorFormVWG class with the specified businessObject, uiDefName and post edit action.
public DefaultBOEditorFormVWG ( BusinessObject bo, string uiDefName, IControlFactory controlFactory, PostObjectEditDelegate postObjectEditAction ) : System
bo BusinessObject The business object to represent
uiDefName string The name of the ui def to use.
controlFactory IControlFactory The to use for creating the Editor form controls
postObjectEditAction 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).
Результат System

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

Sets up the forms size based on the BOPanel and the Buttons.
protected SetupFormSize ( IUIForm def ) : void
def IUIForm
Результат void

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

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

The IBusinessObject being managed by this editor.
protected BusinessObject _bo
Результат BusinessObject

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

The IPanelInfo containting the panel info created by the PanelBuilder. This contains the panel and all other info required to display the Panel on the form.
protected IPanelInfo _panelInfo
Результат IPanelInfo