Package | com.bit101.components |
Class | public class Accordion |
Inheritance | Accordion ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
![]() |
enabled : Boolean
Sets/gets whether this component is enabled or not.
|
Component | |
height : Number [override]
|
Accordion | ||
![]() |
tag : int
Sets/gets in integer that can identify the component.
|
Component | |
width : Number [override]
|
Accordion | ||
![]() |
x : Number [override] [write-only]
Overrides the setter for x to always place the component on a whole pixel.
|
Component | |
![]() |
y : Number [override] [write-only]
Overrides the setter for y to always place the component on a whole pixel.
|
Component |
Property | Defined By | ||
---|---|---|---|
![]() |
_enabled : Boolean = true | Component | |
![]() |
_height : Number = 0 | Component | |
![]() |
Ronda : Class | Component | |
![]() |
_tag : int = -1 | Component | |
_vbox : VBox | Accordion | ||
![]() |
_width : Number = 0 | Component | |
_windows : Array | Accordion | ||
_winHeight : Number = 100 | Accordion | ||
_winWidth : Number = 100 | Accordion |
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 | ||
![]() |
initStage(stage:Stage):void
[static]
Utility method to set up usual stage align and scaling.
|
Component | |
![]() |
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 |
Method | Defined By | ||
---|---|---|---|
addChildren():void
[override]
Creates and adds the child display objects of this component.
|
Accordion | ||
![]() |
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
|
Component | |
init():void
[override]
Initializes the component.
|
Accordion | ||
![]() |
invalidate():void
Marks the component to be redrawn on the next frame.
|
Component | |
![]() |
onInvalidate(event:Event):void
Called one frame after invalidate is called.
|
Component | |
onWindowSelect(event:Event):void
Called when any window is resized.
|
Accordion |
_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]
public function get height():Number
public function set height(value:Number):void
width | property |
width:Number
[override]
public function get width():Number
public function set width(value:Number):void
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.
|
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.
|
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.
|