Packagecom.addicted2flash.layout.component
Classpublic class AbstractGridBox
InheritanceAbstractGridBox Inheritance UIContainer Inheritance UIComponent Inheritance flash.display.Sprite
SubclassesDynamicGridBox, StaticGridBox

Abstract class for ui grid box implementations.



Public Properties
 PropertyDefined by
 Inheritedbounds : Rectangle
Returns a copy of the bounds of the component.
UIComponent
 InheritedcomponentCount : int
Returns the total amount of components in the container.
UIContainer
 Inheritedconstraint : Object
Returns the constraint of the component.
UIComponent
 InheritedcontentHeight : Number
Returns the occupied height of all components.
UIContainer
 InheritedcontentWidth : Number
Returns the occupied width of all components.
UIContainer
 InheriteddesiredHeight : Number
Returns the desired height of the component.
UIComponent
 InheriteddesiredPercentHeight : Number
Sets the desired height of the component as percent value.
UIComponent
 InheriteddesiredPercentWidth : Number
Sets the desired width of the component as percent value.
UIComponent
 InheriteddesiredWidth : Number
Returns the desired width of the component.
UIComponent
  flow : int
AbstractGridBox
 InheritedhasPercentagedHeight : Boolean
Returns true if desired height should be calculated in percentaged values.
UIComponent
 InheritedhasPercentagedWidth : Boolean
Returns true if desired width should be calculated in percentaged values.
UIComponent
 Inheritedheight : Number
Returns the height of the component.
UIComponent
 InheritedhorizontalAlignment : int
Returns the horiziontal alignment of the component.
UIComponent
  horizontalGap : Number
AbstractGridBox
 InheritedisValid : Boolean
Returns true if component is in a valid state.
UIComponent
  layout : ILayout
[write-only] Sets the layout of the container.
AbstractGridBox
 InheritedlayoutObserverCount : int
Returns the total amount of ILayoutObserver of this ILayoutObservable.
UIComponent
 Inheritedmargin : Margin
Returns the margin of the component.
UIComponent
 InheritedmaximumHeight : Number
Returns the maximum height of the component.
UIComponent
 InheritedmaximumWidth : Number
Returns the maximum width of the component.
UIComponent
 InheritedmeasuredDesiredHeight : Number
Sets the measured desired height of the component.
UIComponent
 InheritedmeasuredDesiredWidth : Number
Sets the measured desired width of the component.
UIComponent
 InheritedmeasuredMinimumHeight : Number
Sets the measured minimum height of the component.
UIComponent
 InheritedmeasuredMinimumWidth : Number
Sets the measured minimum width of the component.
UIComponent
 InheritedminimumHeight : Number
Returns the minimum height of the component.
UIComponent
 InheritedminimumWidth : Number
Returns the minimum width of the component.
UIComponent
 Inheritedpadding : Padding
Returns the padding of the component.
UIComponent
  pageCount : int
[read-only] Returns the number of total pages (one page has the bounds of the container).
AbstractGridBox
  paging : int
AbstractGridBox
 InheritedparentContainer : IUIContainer
Returns the parent IUIContainer of the component.
UIComponent
 Inheritedstate : int
Returns the state of the component.
UIComponent
 InheritedverticalAlignment : int
Returns the vertical alignment of the component.
UIComponent
  verticalGap : Number
AbstractGridBox
 Inheritedwidth : Number
Returns the width of the component.
UIComponent
 Inheritedx : Number
Returns the x position of the component.
UIComponent
 Inheritedy : Number
Returns the y position of the component.
UIComponent
Public Methods
 MethodDefined by
  
Creates a new AbstractGridBox.
AbstractGridBox
 Inherited
add(c:IUIComponent, constraint:Object = null):IUIComponent
Adds a component to the container with a given constraint.
UIContainer
 Inherited
addAt(i:int, c:IUIComponent, constraint:Object = null):IUIComponent
Adds a component to the container, at a spcific index, with a given constraint.
UIContainer
 Inherited
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
 Inherited
Returns true if given component exists within containers list.
UIContainer
  
dispose():void
free memory for garbage collection.
AbstractGridBox
 Inherited
findComponent(x:Number, y:Number):IUIComponent
Returns the component at the given position.
UIContainer
 Inherited
Returns the component at the given index.
UIContainer
 Inherited
Returns the index of the given component.
UIContainer
 Inherited
invalidate():void
Component will be measured and rearranged.
UIComponent
 Inherited
lock():void
Locks invalidation lifecycle when adding/removing components (no internal invalidate() calls after add/remove).
UIContainer
 Inherited
move(x:Number, y:Number):Boolean
Sets the position of the component and returns true if position has changed.
UIComponent
 Inherited
notifyLayoutObservers(type:int):void
Registered ILayoutObserver will be notified.
UIComponent
 Inherited
Removes a component from the container.
UIContainer
 Inherited
removeAll():void
Removes all components from the container.
UIContainer
 Inherited
Removes a component from the container, at a specific index.
UIContainer
 Inherited
Deletes an ILayoutObserver from the set of observers of this object.
UIComponent
 Inherited
resize(w:Number, h:Number):Boolean
Sets the size of the bounds and the desired size (pixel values) of the component.
UIComponent
 Inherited
setAt(i:int, c:IUIComponent, constraint:Object = null):IUIComponent
Replaces a component at a given index.
UIContainer
 Inherited
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
 Inherited
toString():String
Returns the string representation of the UIContainer.
UIContainer
 Inherited
unlock():void
Unlocks invalidation lifecycle and calls invalidate() if container is not valid.
UIContainer
Protected Methods
 MethodDefined by
 Inherited
arrange():void
Concrete implementations need to override this method to arrange and size their components, depending on their bounds.
UIContainer
 Inherited
Concrete implementations need to override this method to handle horizontal overflow.
UIContainer
 Inherited
measure():void
Concrete implemenations need to override this method to set its sizes (measured desired, measured minimum size).
UIContainer
 Inherited
Validates the content bounds of the UIContainer.
UIContainer
 Inherited
Concrete implementations need to override this method to handle vertical overflow.
UIContainer
Property detail
flowproperty
flow:int  [read-write]

Implementation
    public function get flow():int
    public function set flow(value:int):void
horizontalGapproperty 
horizontalGap:Number  [read-write]

Implementation
    public function get horizontalGap():Number
    public function set horizontalGap(value:Number):void
layoutproperty 
layout:ILayout  [write-only]

Sets the layout of the container.

Implementation
    public function set layout(value:ILayout):void
pageCountproperty 
pageCount:int  [read-only]

Returns the number of total pages (one page has the bounds of the container).

Implementation
    public function get pageCount():int
pagingproperty 
paging:int  [read-write]

Implementation
    public function get paging():int
    public function set paging(value:int):void
verticalGapproperty 
verticalGap:Number  [read-write]

Implementation
    public function get verticalGap():Number
    public function set verticalGap(value:Number):void
Constructor detail
AbstractGridBox()constructor
public function AbstractGridBox(layout:AbstractGridLayout)

Creates a new AbstractGridBox.

Parameters
layout:AbstractGridLayout — subclass of AbstractGridLayout
Method detail
dispose()method
public override function dispose():void

free memory for garbage collection.