| Package | com.yahoo.astra.layout |
| Class | public class LayoutManager |
See also
| Method | Defined by | ||
|---|---|---|---|
|
hasInvalidatingEvents(target:DisplayObject):Boolean
[static]
Determines if a particular DisplayObject's type has been registered
with invalidating events.
| LayoutManager | ||
|
invalidateParentLayout(target:DisplayObject):void
[static]
If the target's parent is a layout container, that parent will be
informed that it needs to update the layout.
| LayoutManager | ||
|
registerContainerChild(child:DisplayObject):void
[static]
Called by an ILayoutContainer implementation when a child is added.
| LayoutManager | ||
|
registerInvalidatingEvents(source:Class, events:Array):void
[static]
Allows users to specify events that invalidate the parent layout container
when fired by instances of a specific class.
| LayoutManager | ||
|
resize(target:DisplayObject, width:Number, height:Number):void
[static]
If a DisplayObject that is placed into a layout container doesn't
fire events for size changes, calling this function will allow
its size to properly affect its parent layout.
| LayoutManager | ||
|
unregisterContainerChild(child:DisplayObject):void
[static]
Called by a layout container when a child is removed.
| LayoutManager | ||
|
update(target:DisplayObject, property:String, value:Object):void
[static]
Similar to
LayoutManager.resize(), this function may be called
to update any property of a DisplayObject and notify its parent layout
container to refresh if no event normally indicates this is needed. | LayoutManager | ||
| hasInvalidatingEvents | () | method |
public static function hasInvalidatingEvents(target:DisplayObject):BooleanDetermines if a particular DisplayObject's type has been registered with invalidating events.
Parameterstarget:DisplayObject |
Boolean |
| invalidateParentLayout | () | method |
public static function invalidateParentLayout(target:DisplayObject):voidIf the target's parent is a layout container, that parent will be informed that it needs to update the layout.
Parameterstarget:DisplayObject |
| registerContainerChild | () | method |
public static function registerContainerChild(child:DisplayObject):voidCalled by an ILayoutContainer implementation when a child is added. If the child is an instance of a class with registered events, the layout system will listen for those events.
Parameterschild:DisplayObject |
See also
| registerInvalidatingEvents | () | method |
public static function registerInvalidatingEvents(source:Class, events:Array):voidAllows users to specify events that invalidate the parent layout container when fired by instances of a specific class.
For example, if fl.core.UIComponent fires the resize
event when it is inside a layout container, the layout container will
refresh its layout.
source:Class |
|
events:Array |
LayoutManager.registerInvalidatingEvents( UIComponent, [ComponentEvent.RESIZE, ComponentEvent.MOVE] );
| resize | () | method |
public static function resize(target:DisplayObject, width:Number, height:Number):voidIf a DisplayObject that is placed into a layout container doesn't fire events for size changes, calling this function will allow its size to properly affect its parent layout. TODO: add parameters
Parameterstarget:DisplayObject |
|
width:Number |
|
height:Number |
LayoutManager.resize( mySprite, 100, 34 );
| unregisterContainerChild | () | method |
public static function unregisterContainerChild(child:DisplayObject):voidCalled by a layout container when a child is removed. If the child is an instance of a class with registered events, the layout system will stop listening to those events.
Parameterschild:DisplayObject |
See also
| update | () | method |
public static function update(target:DisplayObject, property:String, value:Object):void
Similar to LayoutManager.resize(), this function may be called
to update any property of a DisplayObject and notify its parent layout
container to refresh if no event normally indicates this is needed.
TODO: add parameters
target:DisplayObject |
|
property:String |
|
value:Object |
LayoutManager.update(mySprite, "transform", new Transform());