Packagecom.gestureworks.cml.element
Classpublic class Drawer
InheritanceDrawer Inheritance Container Inheritance ContainerFactory Inheritance ElementFactory Inheritance flash.display.Sprite
Subclasses Dock

The Drawer is a container that animates down to conceal its contents (closed state) and animates up to reveal its contents (open state). The open and closed states are toggled by tapping the top of the drawer (handle).



Public Properties
 PropertyDefined By
 Inheritedalpha : Number
[override] [write-only] sets the alpha for display objects
ElementFactory
  applyMask : Boolean
Flag indicating the application of a mask to the drawer to prevent content from exceeding the drawer's boundaries
Drawer
  background : *
The DisplayObject representing the drawer's content area
Drawer
  bkgColor : uint
The color of the drawer's content area
Drawer
 Inheritedblur : Boolean
Sets the drop shadow effect
ElementFactory
 Inheritedbottom : Number
sets the bottom value
ElementFactory
 InheritedchildList : ChildList
[read-only] store the child list
ContainerFactory
 Inheritedclass_ : String
Object's css class;
ElementFactory
 InheritedclassName : String
sets the class name of displayobject
ElementFactory
 InheritedcmlIndex : int
sets the cml index
ElementFactory
 InheriteddebugStyle : *
sets the debug style
ElementFactory
 InheriteddimensionsTo : String
sets the dimensions of the container
ContainerFactory
 InheriteddisplayEvents : String
Use for dispatch completes.
ElementFactory
 InheriteddropShadow : Boolean
Sets the drop shadow effect
ElementFactory
  handle : *
The top mounted TouchContainer used to close/open the drawer when tapped.
Drawer
  handleColor : uint
The color of the drawer's handle
Drawer
  handleHeight : Number
The height of the drawer's handle
Drawer
  handleLineColor : uint
The color the handle's border
Drawer
  handleLineStroke : Number
The width of the handle's border in pixels
Drawer
  handleWidth : Number
The width of the drawer's handle
Drawer
  height : Number
[override] Sets the height of the drawer and drawer's UI components
Drawer
 InheritedheightPercent : String
sets the height percent of display object
ElementFactory
 InheritedhorizontalCenter : Number
sets the horizontal center of display object
ElementFactory
 Inheritedid : String
sets the id of child
ElementFactory
 Inheritedindex : int
sets the index of display object
ElementFactory
 InheritedinfoSource : String
sets info source
ContainerFactory
  initializeOpen : Boolean
Flag indicating whether the initial state of the drawer is open or closed
Drawer
  label : *
The Text component that displays the drawer's title
Drawer
  labelColor : uint
The color of the handle's label
Drawer
  labelFont : String
The font of the handle's label
Drawer
  labelFontSize : Number
The font size of the handle's label
Drawer
 Inheritedlayout : *
Sets the layout of the container
Container
 InheritedlayoutComplete : Function
Sets the function to call when the layout is complete
Container
 InheritedlayoutList : Dictionary
Defines the layoutlist
Container
 InheritedlayoutUpdate : Function
Sets the function to call when the layout updates
Container
 Inheritedleft : Number
sets left value
ElementFactory
  leftCornerRadius : Number
The radius of the upper left corner of the handle
Drawer
  leftHandle : *
The left mounted TouchContainer used to close the drawer when tapped.
Drawer
 InheritedpaddingBottom : Number
Sets the number of pixels between the container's bottom border and the bottom of its content area.
Container
 InheritedpaddingLeft : Number
Sets the number of pixels between the component's left border and the left edge of its content area.
Container
 InheritedpaddingRight : Number
Sets the number of pixels between the component's right border and the right edge of its content area.
Container
 InheritedpaddingTop : Number
Sets the number of pixels between the container's top border and the top of its content area.
Container
 Inheritedposition : String
Sets the position
Container
 InheritedpropertyStates : Array
Deprecated: Please Use state
ElementFactory
 Inheritedright : Number
sets the right value
ElementFactory
  rightCornerRadius : Number
The radius of the upper right corner of the handle
Drawer
  rightHandle : *
The right mounted TouchContainer used to close the drawer when tapped.
Drawer
 Inheritedscale : Number
Sets both the x and y scale values
ElementFactory
 InheritedscaleX : Number
[override] Sets width of the display object in pixels
ElementFactory
 InheritedscaleY : Number
[override] Sets width of the display object in pixels
ElementFactory
 Inheritedstate : Array
property states array
ElementFactory
  title : String
The text of the handle's label
Drawer
 Inheritedtop : Number
sets top value
ElementFactory
  useLeftHandle : Boolean
A flag indicating the hiding of the top mounted handle when the drawer is in the open state and transferring the close operation to the left handle.
Drawer
  useRightHandle : Boolean
A flag indicating the hiding of the top mounted handle when the drawer is in the open state and transferring the close operation to the right handle.
Drawer
  useSideHandles : Boolean
A flag indicating the hiding of the top mounted handle when the drawer is in the open state and transferring the close operation to the side handles.
Drawer
 InheritedverticalCenter : Number
sets the vertical center of display object
ElementFactory
  width : Number
[override] Sets the width of the drawer and drawer's UI components
Drawer
 InheritedwidthPercent : String
sets the percent of width of display object
ElementFactory
Public Methods
 MethodDefined By
  
Constructor
Drawer
 Inherited
This method searches the childlist and add the children
ContainerFactory
  
addChild(child:DisplayObject):DisplayObject
[override] Reroutes child additions to the drawer's content holder
Drawer
  
addChildAt(child:DisplayObject, index:int):DisplayObject
[override] Reroutes child additions to the drawer's content holder
Drawer
 Inherited
applyLayout(value:* = null):void
Apply the containers layout
Container
 Inherited
childToList(id:String, child:*):void
this method append to the childlist
ContainerFactory
 Inherited
clone():*
Returns clone of self
ElementFactory
  
[override] CML init
Drawer
  
dispose():void
[override] Destructor
Drawer
 Inherited
getIndex(index:int):*
returns childlist index
Container
 Inherited
getKey(key:String):*
returns the childlist key
Container
 Inherited
hideIndex(index:int):void
hides the childlist index
Container
 Inherited
hideKey(key:String):void
hides the childlist key
Container
  
init():void
[override] Initialization function
Drawer
 Inherited
parseCML(cml:XMLList):XMLList
[override] Parse cml for local layouts.
Container
 Inherited
postparseCML(cml:XMLList):void
post parses the cml file
ElementFactory
 Inherited
searchChildren(value:*, returnType:Class = null):*
This method does a depth first search of childLists.
Container
 Inherited
This method sets the dimensions of childlist
ContainerFactory
 Inherited
showIndex(index:int):void
shows the childlist index
Container
 Inherited
showKey(key:String):void
shows the childlist key
Container
 Inherited
updateProperties(state:Number = 0):void
this method updates the properties
ElementFactory
Property Detail
applyMaskproperty
applyMask:Boolean

Flag indicating the application of a mask to the drawer to prevent content from exceeding the drawer's boundaries

The default value is true.


Implementation
    public function get applyMask():Boolean
    public function set applyMask(value:Boolean):void
backgroundproperty 
background:*

The DisplayObject representing the drawer's content area


Implementation
    public function get background():*
    public function set background(value:any):void
bkgColorproperty 
bkgColor:uint

The color of the drawer's content area

The default value is 0x424141.


Implementation
    public function get bkgColor():uint
    public function set bkgColor(value:uint):void
handleproperty 
handle:*

The top mounted TouchContainer used to close/open the drawer when tapped. The handle must contain a DisplayObject to target.


Implementation
    public function get handle():*
    public function set handle(value:any):void
handleColorproperty 
handleColor:uint

The color of the drawer's handle

The default value is 0x2E2D2D.


Implementation
    public function get handleColor():uint
    public function set handleColor(value:uint):void
handleHeightproperty 
handleHeight:Number

The height of the drawer's handle

The default value is 60.


Implementation
    public function get handleHeight():Number
    public function set handleHeight(value:Number):void
handleLineColorproperty 
handleLineColor:uint

The color the handle's border


Implementation
    public function get handleLineColor():uint
    public function set handleLineColor(value:uint):void
handleLineStrokeproperty 
handleLineStroke:Number

The width of the handle's border in pixels


Implementation
    public function get handleLineStroke():Number
    public function set handleLineStroke(value:Number):void
handleWidthproperty 
handleWidth:Number

The width of the drawer's handle

The default value is 500.


Implementation
    public function get handleWidth():Number
    public function set handleWidth(value:Number):void
heightproperty 
height:Number[override]

Sets the height of the drawer and drawer's UI components

The default value is 420.


Implementation
    public function get height():Number
    public function set height(value:Number):void
initializeOpenproperty 
initializeOpen:Boolean

Flag indicating whether the initial state of the drawer is open or closed

The default value is false.


Implementation
    public function get initializeOpen():Boolean
    public function set initializeOpen(value:Boolean):void
labelproperty 
label:*

The Text component that displays the drawer's title


Implementation
    public function get label():*
    public function set label(value:any):void
labelColorproperty 
labelColor:uint

The color of the handle's label

The default value is 0xFFFFFF.


Implementation
    public function get labelColor():uint
    public function set labelColor(value:uint):void
labelFontproperty 
labelFont:String

The font of the handle's label

The default value is OpenSansRegular.


Implementation
    public function get labelFont():String
    public function set labelFont(value:String):void
labelFontSizeproperty 
labelFontSize:Number

The font size of the handle's label

The default value is 30.


Implementation
    public function get labelFontSize():Number
    public function set labelFontSize(value:Number):void
leftCornerRadiusproperty 
leftCornerRadius:Number

The radius of the upper left corner of the handle

The default value is 15.


Implementation
    public function get leftCornerRadius():Number
    public function set leftCornerRadius(value:Number):void
leftHandleproperty 
leftHandle:*

The left mounted TouchContainer used to close the drawer when tapped. The handle must contain a DisplayObject to target.


Implementation
    public function get leftHandle():*
    public function set leftHandle(value:any):void
rightCornerRadiusproperty 
rightCornerRadius:Number

The radius of the upper right corner of the handle

The default value is 15.


Implementation
    public function get rightCornerRadius():Number
    public function set rightCornerRadius(value:Number):void
rightHandleproperty 
rightHandle:*

The right mounted TouchContainer used to close the drawer when tapped. The handle must contain a DisplayObject to target.


Implementation
    public function get rightHandle():*
    public function set rightHandle(value:any):void
titleproperty 
title:String

The text of the handle's label


Implementation
    public function get title():String
    public function set title(value:String):void
useLeftHandleproperty 
useLeftHandle:Boolean

A flag indicating the hiding of the top mounted handle when the drawer is in the open state and transferring the close operation to the left handle.


Implementation
    public function get useLeftHandle():Boolean
    public function set useLeftHandle(value:Boolean):void
useRightHandleproperty 
useRightHandle:Boolean

A flag indicating the hiding of the top mounted handle when the drawer is in the open state and transferring the close operation to the right handle.


Implementation
    public function get useRightHandle():Boolean
    public function set useRightHandle(value:Boolean):void
useSideHandlesproperty 
useSideHandles:Boolean

A flag indicating the hiding of the top mounted handle when the drawer is in the open state and transferring the close operation to the side handles.


Implementation
    public function get useSideHandles():Boolean
    public function set useSideHandles(value:Boolean):void
widthproperty 
width:Number[override]

Sets the width of the drawer and drawer's UI components

The default value is 500.


Implementation
    public function get width():Number
    public function set width(value:Number):void
Constructor Detail
Drawer()Constructor
public function Drawer()

Constructor

Method Detail
addChild()method
override public function addChild(child:DisplayObject):DisplayObject

Reroutes child additions to the drawer's content holder

Parameters

child:DisplayObject — the child to add to the content holder

Returns
DisplayObject — the child added to the content holder
addChildAt()method 
override public function addChildAt(child:DisplayObject, index:int):DisplayObject

Reroutes child additions to the drawer's content holder

Parameters

child:DisplayObject — the child to add to the content holder
 
index:int

Returns
DisplayObject — the child added to the content holder
displayComplete()method 
override public function displayComplete():void

CML init

dispose()method 
override public function dispose():void

Destructor

init()method 
override public function init():void

Initialization function