| Package | de.mightypirates.asul.interfaces |
| Interface | public interface ILayout extends IAsulObject, flash.events.IEventDispatcher, IDisposable |
A layout is a class defining a specific way of positioning child elements of
a DisplayObjectContainer. When applied, it will position all
children of an object accordingly.
| Property | Defined by | ||
|---|---|---|---|
![]() | clipChildren : Boolean
Clip children of this element (true) or not (false).
| IAsulObject | |
| isEnabled : Boolean
Determines whether to allow the layouting component to perform its layout
when triggered (e.g.
| ILayout | ||
![]() | maxHeight : Number
The maximum height of this object.
| IAsulObject | |
![]() | maxWidth : Number
The maximum width of this object.
| IAsulObject | |
![]() | minHeight : Number
The minimum height of this object.
| IAsulObject | |
![]() | minWidth : Number
The minimum width of this object.
| IAsulObject | |
![]() | name : String
The name of this object.
| IAsulObject | |
![]() | style : Array
A list of style names applicant to this object.
| IAsulObject | |
![]() | tagname : String
The XML tagname of the element, e.g.
| IAsulObject | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
Adds another ASUL object as a virtual child to this one.
| IAsulObject | |
![]() |
clone():DisplayObject
Clones the ASUL object, creating an exact copy of it (based on its
ORIGINAL data! Later attribute changes will be discarded.).
| IAsulObject | |
![]() |
deepGetChildByName(name:String, container:DisplayObjectContainer = null):DisplayObject
This searches the object's children through all child containers until a
node with the given name was found.
| IAsulObject | |
![]() |
dispose():void
Cleans upd the object, removing all listeners, timers and references that
might keep the object from being garbage collected.
| IDisposable | |
|
doLayout():void
Applies the layout.
| ILayout | ||
![]() |
Removes a virtual child from this ASUL object.
| IAsulObject | |
![]() |
setAttribute(name:String, value:*):void
Sets an attribute for this element.
| IAsulObject | |
| isEnabled | property |
isEnabled:Boolean [read-write]Determines whether to allow the layouting component to perform its layout when triggered (e.g. by adding or removing children). This can be used to temporarily disable layouting when manipulating many elements at once, to improve performance.
Implementation public function get isEnabled():Boolean
public function set isEnabled(value:Boolean):void
| doLayout | () | method |
public function doLayout():voidApplies the layout.