| Package | com.bit101.components |
| Class | public class Panel |
| Inheritance | Panel Component flash.display.Sprite |
| Subclasses | Calendar, ScrollPane |
| Property | Defined By | ||
|---|---|---|---|
|
color : int
Gets / sets the backgrond color of this panel.
|
Panel | ||
|
content : Sprite
Container for content added to this panel.
|
Panel | ||
![]() |
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 | ||
![]() |
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 | ||
![]() |
tag : int
Sets/gets in integer that can identify the component.
|
Component | |
![]() |
width : Number [override]
Sets/gets the width of the component.
|
Component | |
![]() |
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 | ||
|---|---|---|---|
| _background : Sprite | Panel | ||
| _color : int = -1 | Panel | ||
![]() |
_enabled : Boolean = true | Component | |
| _gridColor : uint = 0xd0d0d0 | Panel | ||
| _gridSize : int = 10 | Panel | ||
![]() |
_height : Number = 0 | Component | |
| _mask : Sprite | Panel | ||
![]() |
Ronda : Class | Component | |
| _shadow : Boolean = true | Panel | ||
| _showGrid : Boolean = false | Panel | ||
![]() |
_tag : int = -1 | Component | |
![]() |
_width : Number = 0 | Component | |
| 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 | ||
![]() |
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
Sets the size of the component.
|
Component | |
| Method | Defined By | ||
|---|---|---|---|
|
addChildren():void
[override]
Creates and adds the child display objects of this component.
|
Panel | ||
|
drawGrid():void
|
Panel | ||
![]() |
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
|
Component | |
|
init():void
[override]
Initializes the component.
|
Panel | ||
![]() |
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 | |
| _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.
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.
public function get gridColor():uint public function set gridColor(value:uint):void| gridSize | property |
gridSize:int
Sets / gets the size of the grid.
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.
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.
public function get showGrid():Boolean public function set showGrid(value:Boolean):void| 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.
|
| 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.