C# Class Habanero.Faces.Base.BorderLayoutManager

Manages the layout of controls in a user interface by having a component assigned a compass position. For instance, having the "east" position assigned will result in the control being placed against the right border.
Inheritance: LayoutManager
ファイルを表示 Open project: Chillisoft/habanero.faces Class Usage Examples

Public Methods

Method Description
AddControl ( IControlHabanero control ) : IControlHabanero

Add a control to the layout

AddControl ( IControlHabanero control, Position pos ) : IControlHabanero

Add a control to the layout at the specified position

AddControl ( IControlHabanero control, Position pos, bool includeSplitter ) : IControlHabanero

Add a control to the layout

BorderLayoutManager ( IControlHabanero managedControl, IControlFactory controlFactory ) : System

Constructor to initalise a new layout manager

Protected Methods

Method Description
RefreshControlPositions ( ) : void

Updates the layout and appearance of the managed controls

SetupDockOfControl ( IControlHabanero control, Position pos ) : void

Sets how the specified control is docked within its parent

Method Details

AddControl() public method

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

AddControl() public method

Add a control to the layout at the specified position
public AddControl ( IControlHabanero control, Position pos ) : IControlHabanero
control IControlHabanero The control to add
pos Position The position at which to add the control
return IControlHabanero

AddControl() public abstract method

Add a control to the layout
public abstract AddControl ( IControlHabanero control, Position pos, bool includeSplitter ) : IControlHabanero
control IControlHabanero The control to add
pos Position The position at which to add the control
includeSplitter bool True to include a splitter between the controls
return IControlHabanero

BorderLayoutManager() public method

Constructor to initalise a new layout manager
public BorderLayoutManager ( IControlHabanero managedControl, IControlFactory controlFactory ) : System
managedControl IControlHabanero The control to manage (eg. use "this" /// if you create the manager inside a form class that you will be /// managing)
controlFactory IControlFactory The control factory that will be used to create controls
return System

RefreshControlPositions() protected method

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

SetupDockOfControl() protected abstract method

Sets how the specified control is docked within its parent
protected abstract SetupDockOfControl ( IControlHabanero control, Position pos ) : void
control IControlHabanero
pos Position
return void