Package com.bit101.components
Class public class Accordion
Inheritance Accordion InheritanceComponent Inheritance flash.display.Sprite



Public Properties
  Property Defined By
  Inherited enabled : Boolean
Sets/gets whether this component is enabled or not.
Component
    height : Number
[override]
Accordion
  Inherited tag : int
Sets/gets in integer that can identify the component.
Component
    width : Number
[override]
Accordion
  Inherited x : Number
[override] [write-only] Overrides the setter for x to always place the component on a whole pixel.
Component
  Inherited y : Number
[override] [write-only] Overrides the setter for y to always place the component on a whole pixel.
Component
Protected Properties
  Property Defined By
  Inherited _enabled : Boolean = true
Component
  Inherited _height : Number = 0
Component
  Inherited Ronda : Class
Component
  Inherited _tag : int = -1
Component
    _vbox : VBox
Accordion
  Inherited _width : Number = 0
Component
    _windows : Array
Accordion
    _winHeight : Number = 100
Accordion
    _winWidth : Number = 100
Accordion
Public Methods
  Method Defined By
   
Accordion(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0)
Constructor
Accordion
   
addWindow(title:String):void
Adds a new window to the bottom of the accordion.
Accordion
   
draw():void
[override]
Accordion
   
getWindowAt(index:int):Window
Returns the Window at the specified index.
Accordion
  Inherited
initStage(stage:Stage):void
[static] Utility method to set up usual stage align and scaling.
Component
  Inherited
move(xpos:Number, ypos:Number):void
Moves the component to the specified position.
Component
   
setSize(w:Number, h:Number):void
[override] Sets the size of the component.
Accordion
Protected Methods
  Method Defined By
   
addChildren():void
[override] Creates and adds the child display objects of this component.
Accordion
  Inherited
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
Component
   
init():void
[override] Initializes the component.
Accordion
  Inherited
invalidate():void
Marks the component to be redrawn on the next frame.
Component
  Inherited
onInvalidate(event:Event):void
Called one frame after invalidate is called.
Component
   
onWindowSelect(event:Event):void
Called when any window is resized.
Accordion
Public Constants
  Constant Defined By
  Inherited DRAW : String = draw
[static]
Component
Property Detail
_vbox property
protected var _vbox:VBox

_windows property  
protected var _windows:Array

_winHeight property  
protected var _winHeight:Number = 100

_winWidth property  
protected var _winWidth:Number = 100

height property  
height:Number[override]


Implementation
    public function get height():Number
    public function set height(value:Number):void
width property  
width:Number[override]


Implementation
    public function get width():Number
    public function set width(value:Number):void
Constructor Detail
Accordion () Constructor
public function Accordion(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0)

Constructor

Parameters
parent:DisplayObjectContainer (default = null) — The parent DisplayObjectContainer on which to add this Panel.
 
xpos:Number (default = 0) — The x position to place this component.
 
ypos:Number (default = 0) — The y position to place this component.
Method Detail
addChildren () method
override protected function addChildren():void

Creates and adds the child display objects of this component.

addWindow () method  
public function addWindow(title:String):void

Adds a new window to the bottom of the accordion.

Parameters

title:String — The title of the new window.
draw () method  
override public function draw():void

getWindowAt () method  
public function getWindowAt(index:int):Window

Returns the Window at the specified index.

Parameters

index:int — The index of the Window you want to get access to.

Returns
Window
init () method  
override protected function init():void

Initializes the component.

onWindowSelect () method  
protected function onWindowSelect(event:Event):void

Called when any window is resized. If the window has been expanded, it closes all other windows.

Parameters

event:Event
setSize () method  
override public function setSize(w:Number, h:Number):void

Sets the size of the component.

Parameters

w:Number — The width of the component.
 
h:Number — The height of the component.