| Package | com.addicted2flash.layout.component |
| Class | public class Application |
| Inheritance | Application UIContainer UIComponent flash.display.Sprite |
| Method | Defined by | ||
|---|---|---|---|
|
Application(type:int, autoResize:Boolean = true, layout:ILayout = null)
Creates a new
Application that acts as the root
of the display list in a layout system. | Application | ||
![]() |
Adds a component to the container with a given constraint.
| UIContainer | |
![]() |
Adds a component to the container, at a spcific index, with a given constraint.
| UIContainer | |
![]() |
addLayoutObserver(o:ILayoutObserver):void
Adds an
ILayoutObserver to the set of observers for this object,
provided that it is not the same as some observer already in the set. | UIComponent | |
![]() |
containsComponent(c:IUIComponent):Boolean
Returns true if given component exists within containers list.
| UIContainer | |
![]() |
dispose():void
free memory for garbage collection.
| UIContainer | |
![]() |
findComponent(x:Number, y:Number):IUIComponent
Returns the component at the given position.
| UIContainer | |
![]() |
getAt(i:int):IUIComponent
Returns the component at the given index.
| UIContainer | |
![]() |
indexOfComponent(c:IUIComponent):int
Returns the index of the given component.
| UIContainer | |
![]() |
invalidate():void
Component will be measured and rearranged.
| UIComponent | |
![]() |
lock():void
Locks invalidation lifecycle when adding/removing components (no internal
invalidate()
calls after add/remove). | UIContainer | |
![]() |
move(x:Number, y:Number):Boolean
Sets the position of the component and returns true if position has changed.
| UIComponent | |
![]() |
notifyLayoutObservers(type:int):void
Registered
ILayoutObserver will be notified. | UIComponent | |
![]() |
Removes a component from the container.
| UIContainer | |
![]() |
removeAll():void
Removes all components from the container.
| UIContainer | |
![]() |
removeAt(i:int):IUIComponent
Removes a component from the container, at a specific index.
| UIContainer | |
![]() |
removeLayoutObserver(o:ILayoutObserver):void
Deletes an
ILayoutObserver from the set of observers of this object. | UIComponent | |
![]() |
resize(w:Number, h:Number):Boolean
Sets the size of the bounds and the desired size (pixel values)
of the component.
| UIComponent | |
![]() |
Replaces a component at a given index.
| UIContainer | |
![]() |
setLayoutSize(w:Number, h:Number):Boolean
This method is used for updating the size of the bounds
within a validation lifecycle (in
arrange process
within a container). | UIComponent | |
|
toString():String
Returns the string representation of the
Application. | Application | ||
![]() |
unlock():void
Unlocks invalidation lifecycle and calls
invalidate() if container is not valid. | UIContainer | |
| Constant | Defined by | ||
|---|---|---|---|
| ABSOLUTE : int = 0x03 [static]
Constraint for absolute layout.
| Application | ||
| CUSTOM : int = 0x04 [static]
Constraint for custom layout.
| Application | ||
| HORIZONTAL : int = 0x01 [static]
Constraint for horizontal layout.
| Application | ||
| VERTICAL : int = 0x02 [static]
Constraint for vertical layout.
| Application | ||
| Application | () | constructor |
public function Application(type:int, autoResize:Boolean = true, layout:ILayout = null)
Creates a new Application that acts as the root
of the display list in a layout system.
type:int — type of layout
|
|
autoResize:Boolean (default = true) — true if application should always set its size according to stage resizing
|
|
layout:ILayout (default = null) |
— if Application is not root of the display list (main class)
|
| toString | () | method |
public override function toString():String
Returns the string representation of the Application.
String — the string representation of the Application
|
| ABSOLUTE | constant |
public static const ABSOLUTE:int = 0x03Constraint for absolute layout.
| CUSTOM | constant |
public static const CUSTOM:int = 0x04Constraint for custom layout.
| HORIZONTAL | constant |
public static const HORIZONTAL:int = 0x01Constraint for horizontal layout.
| VERTICAL | constant |
public static const VERTICAL:int = 0x02Constraint for vertical layout.