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



Public Properties
  Property Defined By
  Inherited color : int
Gets / sets the backgrond color of this panel.
Panel
  Inherited content : Sprite
Container for content added to this panel.
Panel
    dragContent : Boolean
ScrollPane
  Inherited enabled : Boolean
Sets/gets whether this component is enabled or not.
Component
  Inherited gridColor : uint
Sets / gets the color of the grid lines.
Panel
  Inherited gridSize : int
Sets / gets the size of the grid.
Panel
  Inherited height : Number
[override] Sets/gets the height of the component.
Component
  Inherited shadow : Boolean
Gets / sets whether or not this Panel will have an inner shadow.
Panel
  Inherited 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
  Inherited _background : Sprite
Panel
  Inherited _color : int = -1
Panel
    _corner : Shape
ScrollPane
    _dragContent : Boolean = true
ScrollPane
  Inherited _enabled : Boolean = true
Component
  Inherited _gridColor : uint = 0xd0d0d0
Panel
  Inherited _gridSize : int = 10
Panel
  Inherited _height : Number = 0
Component
    _hScrollbar : HScrollBar
ScrollPane
  Inherited _mask : Sprite
Panel
  Inherited Ronda : Class
Component
  Inherited _shadow : Boolean = true
Panel
  Inherited _showGrid : Boolean = false
Panel
  Inherited _tag : int = -1
Component
    _vScrollbar : VScrollBar
ScrollPane
  Inherited _width : Number = 0
Component
Public Methods
  Method Defined By
   
ScrollPane(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0)
Constructor
ScrollPane
   
draw():void
[override] Draws the visual ui of the component.
ScrollPane
  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
   
update():void
Updates the scrollbars when content is changed.
ScrollPane
Protected Methods
  Method Defined By
   
addChildren():void
[override] Creates and adds the child display objects of this component.
ScrollPane
  Inherited
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 this component.
ScrollPane
  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
   
onMouseDown(event:MouseEvent):void
ScrollPane
   
onMouseMove(event:MouseEvent):void
ScrollPane
   
onMouseUp(event:MouseEvent):void
ScrollPane
   
onResize(event:Event):void
ScrollPane
   
onScroll(event:Event):void
Called when either scroll bar is scrolled.
ScrollPane
Public Constants
  Constant Defined By
  Inherited DRAW : String = draw
[static]
Component
Property Detail
_corner property
protected var _corner:Shape

_dragContent property  
protected var _dragContent:Boolean = true

_hScrollbar property  
protected var _hScrollbar:HScrollBar

_vScrollbar property  
protected var _vScrollbar:VScrollBar

dragContent property  
dragContent:Boolean


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

Constructor

Parameters
parent:DisplayObjectContainer (default = null) — The parent DisplayObjectContainer on which to add this ScrollPane.
 
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.

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

Initializes this component.

onMouseDown () method  
protected function onMouseDown(event:MouseEvent):void

Parameters

event:MouseEvent
onMouseMove () method  
protected function onMouseMove(event:MouseEvent):void

Parameters

event:MouseEvent
onMouseUp () method  
protected function onMouseUp(event:MouseEvent):void

Parameters

event:MouseEvent
onResize () method  
protected function onResize(event:Event):void

Parameters

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

Called when either scroll bar is scrolled.

Parameters

event:Event
update () method  
public function update():void

Updates the scrollbars when content is changed. Needs to be done manually.