Main Page | Packages | Class Tree | Index | Help

xp.system.layout

class CellConstraints

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


class CellConstraints
extends Object

CellConstraints binds components to their constraints.



Field Summary

static
d: Array


public
dock: String
The component's dock position property.

public
dockOrder: Number
The component's dock processing order.

static
h: Array


public
hAlign: Number
Horizontal justification if component occupies just one cell

public
height: Number
Cell in which the lower right corner of the component lays

public
insets: Thickness
Describes the component's Insets in it's display area.

static
v: Array


public
vAlign: Number
Vertical justification if component occupies just one cell

public
width: Number
Cell in which the lower right corner of the component lays

public
x: Number
Cell in which the upper left corner of the component lays

public
y: Number
Cell in which the upper left corner of the component lays

Constructor

public
CellConstraints ( x: Number, y: Number, width: Number, height: Number, hAlign: Number, vAlign: Number)
Constructs an CellConstraints a set of constraints.

Method Summary

public static
parseAlignment ( alignment: String, defaultAlignment: Number ): Number


public static
parseDock ( dock: String, defaultDock: Number ): Number


public
toString ( ): String
Gets a string representation of this CellConstraints.

public static
validateConstraint ( c: CellConstraints )




Field Documentation

d

static var d: Array

dock

public var dock: String
The component's dock position property.

dockOrder

public var dockOrder: Number
The component's dock processing order.

h

static var h: Array

hAlign

public var hAlign: Number
Horizontal justification if component occupies just one cell

height

public var height: Number
Cell in which the lower right corner of the component lays

insets

public var insets: Thickness
Describes the component's Insets in it's display area.

v

static var v: Array

vAlign

public var vAlign: Number
Vertical justification if component occupies just one cell

width

public var width: Number
Cell in which the lower right corner of the component lays

x

public var x: Number
Cell in which the upper left corner of the component lays

y

public var y: Number
Cell in which the upper left corner of the component lays


Constructor Documentation

CellConstraints

public function CellConstraints(x: Number,
 y: Number,
 width: Number,
 height: Number,
 hAlign: Number,
 vAlign: Number)
Constructs an CellConstraints a set of constraints.

Parameters:
x
column where upper-left corner of the component is placed
y
row where upper-left corner of the component is placed
width
column where lower-right corner of the component is placed
height
row where lower-right corner of the component is placed
hAlign
horizontal justification of a component in a single cell
vAlign
vertical justification of a component in a single cell

Method Documentation

parseAlignment

public static function parseAlignment(alignment: String,
 defaultAlignment: Number): Number

parseDock

public static function parseDock(dock: String,
 defaultDock: Number): Number

toString

public function toString(): String
Gets a string representation of this CellConstraints.

Returns:
a string in the form "row 1, column 1, row 2, column 2, horizontal justification, vertical justification"

validateConstraint

public static function validateConstraint(c: CellConstraints)

The documentation was generated from the following file:


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