C# Class Habanero.Faces.Base.LayoutManager

A super-class for layout managers that dictate how and where controls are placed in user interface
Inheritance: System.MarshalByRefObject
Show file Open project: Chillisoft/habanero.faces Class Usage Examples

Protected Properties

Property Type Description
_controlFactory IControlFactory

Private Properties

Property Type Description
ManagedControlResizeHandler void
ObserveGlobalUIHints void
SetManagedControl void

Public Methods

Method Description
AddControl ( IControlHabanero control ) : IControlHabanero

Add a control to the layout

Refresh ( ) : void

Updates the layout and appearance of the managed controls

Protected Methods

Method Description
LayoutManager ( IControlHabanero managedControl, IControlFactory controlFactory ) : System

Constructor to initialise a new layout manager

RefreshControlPositions ( ) : void

Updates the layout and appearance of the managed controls

Private Methods

Method Description
ManagedControlResizeHandler ( Object sender, EventArgs e ) : void

A handler to deal with the event where a control has been resized by the user

ObserveGlobalUIHints ( ) : void
SetManagedControl ( IControlHabanero managedControl ) : void

Method Details

AddControl() public abstract method

Add a control to the layout
public abstract AddControl ( IControlHabanero control ) : IControlHabanero
control IControlHabanero The control to add
return IControlHabanero

LayoutManager() protected method

Constructor to initialise a new layout manager
protected LayoutManager ( IControlHabanero managedControl, IControlFactory controlFactory ) : System
managedControl IControlHabanero The control to manage
controlFactory IControlFactory control factory used to create any child controls
return System

Refresh() public method

Updates the layout and appearance of the managed controls
public Refresh ( ) : void
return void

RefreshControlPositions() protected abstract method

Updates the layout and appearance of the managed controls
protected abstract RefreshControlPositions ( ) : void
return void

Property Details

_controlFactory protected property

The IControlFactory used to create any controls required for this layout manager
protected IControlFactory _controlFactory
return IControlFactory