Main Page | Packages | Class Tree | Index | Help

xp.system.layout

class ListLayout

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


class ListLayout
extends LayoutManager

BoxLayout
Layout control in a box in a container Lays out controls in a horizontal or vertical box in a container


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Constructor

public
ListLayout ( )
Create the layout manager instance

Method Summary

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

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

public
layoutContainer ( ): Void
Lays out the container using a horizontal box model Iterate over child cmps, position cmp at the left of the remainig space and stretch vertically to fit

Methods inherited from class xp.system.layout.LayoutManager

addLayoutComponent, getLayoutType, getPreferredSize, initContainer, layoutContainer, removeLayoutComponent



Constructor Documentation

ListLayout

public function ListLayout()
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.

Overrides:

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

getPreferredSize

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

Overrides:

Returns:
The size of the container in a Dimension object

layoutContainer

public function layoutContainer(): Void
Lays out the container using a horizontal box model Iterate over child cmps, position cmp at the left of the remainig space and stretch vertically to fit

Overrides:


The documentation was generated from the following file:


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