Name

constantboundslayout

Synopsis

LZX: constantboundslayout
JavaScript: constantboundslayout
Type: Class
Access: public
Topic: Components.Layouts
Declared in: lps/components/utils/layouts/constantboundslayout.lzx

Superclass Chain

node (LzNode) » layout (LzLayout) » constantboundslayout

Known Subclasses

Details

Properties (2)

axis
<attribute name="axis" type="string" value="y" />
public var axis : String;
The axis in which this layout operates either 'x' or 'y'.
value
<attribute name="value" value="0" />
public var value;
The constant value that is applied to the attribute ( defined in 'axis' as 'x' or 'y' ) of each subview in the layout.

Methods (2)

addSubview()
<method name="addSubview" args="newsub" />
public function addSubview(newsub);
this method is called by the layout class as each new subview is added to a layout. It is extended here to define which events on a subview will activate the update method of this particular layout
update()
<method name="update" />
public function update();
this method is called by the layout class everytime an event (that has been registered with the updatedelegate) is sent by a subview or the layout's parent view.

LZX Synopsis

<class name="constantboundslayout" extends=" LzLayout ">
  <attribute name=" axis " type="string" value="y" />
  <attribute name=" value " value="0" />
  <method name=" addSubview " args="newsub" />
  <method name=" update " />
</class>

JavaScript Synopsis

public constantboundslayout extends  LzLayout  {
  public var axis  : String;
  public var value ;
  prototype public function addSubview (newsub);
  prototype public function update ();
}