C# 클래스 Habanero.Faces.Base.FormController

Provides a controller for forms that keeps a reference to all open forms so that a user can switch between them. The specific advantage of using a controller is that the state of the window can be maintained and the form regeneration time is saved. This controller can be used to populate a "Window" menu item with open forms.
파일 보기 프로젝트 열기: Chillisoft/habanero.faces

공개 메소드들

메소드 설명
SetCurrentControl ( String heading ) : IFormControl

Sets the current control to the one with the specified heading

보호된 메소드들

메소드 설명
FormController ( IFormHabanero parentForm, IControlFactory controlFactory ) : System

Constructor to initialise a new controller

GetControl ( string heading ) : IControlHabanero

Returns the control with the heading specified

GetFormControl ( string heading ) : IFormControl

Returns the form control with the heading specified

비공개 메소드들

메소드 설명
MdiFormClosed ( object sender, EventArgs e ) : void

Handles the event of a form being closed

메소드 상세

FormController() 보호된 메소드

Constructor to initialise a new controller
protected FormController ( IFormHabanero parentForm, IControlFactory controlFactory ) : System
parentForm IFormHabanero The parent form
controlFactory IControlFactory
리턴 System

GetControl() 보호된 메소드

Returns the control with the heading specified
protected GetControl ( string heading ) : IControlHabanero
heading string The heading
리턴 IControlHabanero

GetFormControl() 보호된 추상적인 메소드

Returns the form control with the heading specified
protected abstract GetFormControl ( string heading ) : IFormControl
heading string The heading
리턴 IFormControl

SetCurrentControl() 공개 메소드

Sets the current control to the one with the specified heading
public SetCurrentControl ( String heading ) : IFormControl
heading String The heading
리턴 IFormControl