C# Class Habanero.Faces.Base.ColumnLayoutManager

This allows you to add controls to a layout where the controls will be added to the columns from left to right until the number of columns is exceeded. When this happens the control will be added on the next row. The row height is determined by the heighest control in the row. All controls added will have an identical width (width = managed control width - borders size)
Inheritance: LayoutManager
Show file Open project: Chillisoft/habanero.faces Class Usage Examples

Public Methods

Method Description
AddControl ( IControlHabanero control ) : IControlHabanero

Add a control to those being managed in the layout

ColumnLayoutManager ( IControlHabanero managedControl, IControlFactory controlFactory ) : System

Constructor to initialise a new layout manager

RemoveControl ( IControlHabanero control ) : IControlHabanero

Removes a control from layout manager.

Protected Methods

Method Description
RefreshControlPositions ( ) : void

Updates the layout and appearance of the managed controls

Method Details

AddControl() public method

Add a control to those being managed in the layout
public AddControl ( IControlHabanero control ) : IControlHabanero
control IControlHabanero The control to add
return IControlHabanero

ColumnLayoutManager() public method

Constructor to initialise a new layout manager
public ColumnLayoutManager ( IControlHabanero managedControl, IControlFactory controlFactory ) : System
managedControl IControlHabanero The control to manage
controlFactory IControlFactory The control factory used by the layout manager to create controls
return System

RefreshControlPositions() protected method

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

RemoveControl() public method

Removes a control from layout manager.
public RemoveControl ( IControlHabanero control ) : IControlHabanero
control IControlHabanero The Control to be removed.
return IControlHabanero