A layout for arranging siblings vertically or horizontally in reverse order.
reverselayout is just like
simplelayout, except that the order of the
views it keeps is reversed (bottom to top, or right to left).
reverselayout extends
LzLayout, and therefore it is responsible for
arranging all of the subviews for the view that it is attached to. The
attributes of a view that reverselayout effects
are the x and y
values.
| Attributes | |||||
| Name | Usage | Type (Tag) | Type (JS) | Default | Category |
| axis | Tag & JS | string | String | y | setter |
|
The axis in which this layout operates. One of 'x' or 'y'. |
|||||
|
|
|||||
| end | Tag & JS | expression | any | true | setter |
|
When true (the default), then the layout will push the subviews to the right (or bottom) of the containing view |
|||||
|
|
|||||
| inset | Tag & JS | expression | any | 0 | setter |
|
A pixel amount to inset the last view controlled by the layout |
|||||
|
|
|||||
| spacing | Tag & JS | expression | any | 0 | setter |
|
A pixel amount to use between each view in the layout |
|||||
|
|
|||||
defaultplacement, delegates, locked, subviews, updateDelegate, view.layouts
class, classroot, cloneManager, datapath, id, ignoreAttribute, ignoreplacement, immediateparent, initstage, name, nodeLevel, onconstruct, oninit, parent, placement, subnodes
| setAxis() | ||
| reverselayout.setAxis(a) | ||
|
setter for the axis attribute. The default value is 'y' |
||
| Parameters | ||
| Name | Type | Desc |
| a | string | 'x' oy 'y' |
|
|
||
| update() | ||
| reverselayout.update() | ||
|
This method is usually called automatically when any of the views controlled by the layout change their size in the layout axis, or their visibility. However it can be called directly to force the layout to update |
||
|
|
addSubview, ignore, lock, releaseLayout, removeSubview, reset, setLayoutOrder, swapSubviewOrder, unlock
animate, applyConstraint, applyData, childOf, completeInstantiation, construct, createChildren, dataBindAttribute, destroy, determinePlacement, getAttribute, getOption, getUID, init, lookupSourceLocator, searchImmediateSubnodes, searchSubnodes, setAttribute, setDatapath, setID, setName, setOption
| Events |
Copyright © 2002-2005 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.