Main Page | Packages | Class Tree | Index | Help

xp.system.layout

class LayoutManager

Object
  |
  +--xp.system.layout.LayoutManager

Implemented Interfaces: ILayoutManager
All Known Subclasses: BoxLayout, CanvasLayout, DockLayout, ListLayout, TableLayout

class LayoutManager
extends Object

LayoutManager
Control the layout of controls in a container


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:
support@epresenterplus.com, xp.system.HBoxLayout, xp.system.VBoxLayout, xp.system.DockLayout, xp.system.GridLayout, xp.system.BasicGridLayout, xp.system.RowLayout


Constructor

public
LayoutManager ( )
Create the layout manager instance

Method Summary

public
addLayoutComponent ( component, constraint ): Void
Adds the specified component with the specified name to the layout.

public
getLayoutType ( ): String
A string identifying the type of layout

public
getPreferredSize ( ): Void
Calculates the preferred size for a container

public
initContainer ( container ): Void
Initializes the containers layout

public
layoutContainer ( ): Void
Layouts the container

public
removeLayoutComponent ( component ): Void
Removes the specified component from the layout.



Constructor Documentation

LayoutManager

public function LayoutManager()
Create the layout manager instance


Method Documentation

addLayoutComponent

public function addLayoutComponent(component,
 constraint): Void
Adds the specified component with the specified name to the layout.

Specified by:

Parameters:
component
component to add
constraint
indicates entry's position and alignment

getLayoutType

public function getLayoutType(): String
A string identifying the type of layout

Specified by:

getPreferredSize

public function getPreferredSize(): Void
Calculates the preferred size for a container

Specified by:

Returns:
The size of the container in a Dimension object

initContainer

public function initContainer(container): Void
Initializes the containers layout

Specified by:

layoutContainer

public function layoutContainer(): Void
Layouts the container

Specified by:

removeLayoutComponent

public function removeLayoutComponent(component): Void
Removes the specified component from the layout.

Specified by:

Parameters:
component
component being removed

The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc