Package com.bit101.components
Class public class Panel
Inheritance Panel InheritanceComponent Inheritance flash.display.Sprite
Subclasses Calendar, ScrollPane



Public Properties
  Property Defined By
    color : int
Gets / sets the backgrond color of this panel.
Panel
    content : Sprite
Container for content added to this panel.
Panel
  Inherited enabled : Boolean
Sets/gets whether this component is enabled or not.
Component
    gridColor : uint
Sets / gets the color of the grid lines.
Panel
    gridSize : int
Sets / gets the size of the grid.
Panel
  Inherited height : Number
[override] Sets/gets the height of the component.
Component
    shadow : Boolean
Gets / sets whether or not this Panel will have an inner shadow.
Panel
    showGrid : Boolean
Sets / gets whether or not the grid will be shown.
Panel
  Inherited tag : int
Sets/gets in integer that can identify the component.
Component
  Inherited width : Number
[override] Sets/gets the width of the component.
Component
  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
    _background : Sprite
Panel
    _color : int = -1
Panel
  Inherited _enabled : Boolean = true
Component
    _gridColor : uint = 0xd0d0d0
Panel
    _gridSize : int = 10
Panel
  Inherited _height : Number = 0
Component
    _mask : Sprite
Panel
  Inherited Ronda : Class
Component
    _shadow : Boolean = true
Panel
    _showGrid : Boolean = false
Panel
  Inherited _tag : int = -1
Component
  Inherited _width : Number = 0
Component
Public Methods
  Method Defined By
   
Panel(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0)
Constructor
Panel
   
draw():void
[override] Draws the visual ui of the component.
Panel
  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
  Inherited
setSize(w:Number, h:Number):void
Sets the size of the component.
Component
Protected Methods
  Method Defined By
   
addChildren():void
[override] Creates and adds the child display objects of this component.
Panel
   
drawGrid():void
Panel
  Inherited
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
Component
   
init():void
[override] Initializes the component.
Panel
  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
Public Constants
  Constant Defined By
  Inherited DRAW : String = draw
[static]
Component
Property Detail
_background property
protected var _background:Sprite

_color property  
protected var _color:int = -1

_gridColor property  
protected var _gridColor:uint = 0xd0d0d0

_gridSize property  
protected var _gridSize:int = 10

_mask property  
protected var _mask:Sprite

_shadow property  
protected var _shadow:Boolean = true

_showGrid property  
protected var _showGrid:Boolean = false

color property  
color:int

Gets / sets the backgrond color of this panel.


Implementation
    public function get color():int
    public function set color(value:int):void
content property  
public var content:Sprite

Container for content added to this panel. This is masked, so best to add children to content, rather than directly to the panel.

gridColor property  
gridColor:uint

Sets / gets the color of the grid lines.


Implementation
    public function get gridColor():uint
    public function set gridColor(value:uint):void
gridSize property  
gridSize:int

Sets / gets the size of the grid.


Implementation
    public function get gridSize():int
    public function set gridSize(value:int):void
shadow property  
shadow:Boolean

Gets / sets whether or not this Panel will have an inner shadow.


Implementation
    public function get shadow():Boolean
    public function set shadow(value:Boolean):void
showGrid property  
showGrid:Boolean

Sets / gets whether or not the grid will be shown.


Implementation
    public function get showGrid():Boolean
    public function set showGrid(value:Boolean):void
Constructor Detail
Panel () Constructor
public function Panel(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.

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

Draws the visual ui of the component.

drawGrid () method  
protected function drawGrid():void

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

Initializes the component.