Packageorg.openPyro.containers
Classpublic class DividedBox
InheritanceDividedBox Inheritance UIContainer Inheritance UIControl Inheritance MeasurableControl Inheritance flash.display.Sprite
SubclassesHDividedBox, VDividedBox



Public Properties
 PropertyDefined by
 InheritedbackgroundPainter : IPainter
UIControls can have a backgroundPainter object attached that is triggered everytime updateDisplayList is called.
UIControl
 InheritedclipContent : Boolean
UIContainer
 InheritedcontentHeight : Number
UIContainer
 InheritedcontentWidth : Number
UIContainer
 InheritedcreationCompleteFired : Boolean
MeasurableControl
 InheriteddisplayListInvalidated : Boolean = true
Flag to mark a dirty displaylist.
MeasurableControl
  dividerFactory : ClassFactory
DividedBox
 InheriteddragData : Object
UIControl
 InheriteddragEnabled : Boolean
UIControl
 InheriteddropEnabled : Boolean
UIControl
 InheritedexplicitlyAllocatedHeight : Number
This property are modified by IContainerMeasurementHelpers.
UIContainer
 InheritedexplicitlyAllocatedWidth : Number
This property are modified by IContainerMeasurementHelpers.
UIContainer
 InheritedexplicitWidth : Number
The height set in terms of actual pixels.
MeasurableControl
 InheritedforceInvalidateDisplayList : Boolean = false
MeasurableControl
 Inheritedheight : Number
Set/get the height of the control.
MeasurableControl
 InheritedhorizontalScrollBar : ScrollBar
Returns The instance of the created horizontal or null if it was never created or is not visible.
UIContainer
 InheritedhorizontalScrollIncrement : Number
UIContainer
 InheritedhorizontalScrollPolicy : Boolean
UIContainer
 InheritedhorizontalScrollPosition : Number
UIContainer
 InheritedincludeInLayout : Boolean
Specifies whether this control participates in the layout system in OpenPyro.
MeasurableControl
 Inheritedinitialized : Boolean = false
Property indicates whether a control has been initialized or not.
MeasurableControl
 Inheritedlayout : ILayout
Containers can be assigned different layouts which control the positioning of the different controls.
UIContainer
 InheritedlayoutChildren : Array
Returns an Array of displayObjects whose positions are controlled by the ILayout object.
UIContainer
 InheritedmaximumHeight : Number
MeasurableControl
 InheritedmaximumWidth : Number
MeasurableControl
 InheritedmeasuredHeight : Number
Overrides the set measuredHeight property from MeasurableControl to invalidate children (UIControl acknowledges that it can have children whose dimensions are based on its own)
UIControl
 InheritedmeasuredWidth : Number
Overrides the set measuredWidth property from MeasurableControl to invalidate children (UIControl acknowledges that it can have children whose dimensions are based on its own)
UIControl
 InheritedmouseActionsDisabled : Boolean
MeasurableControl
 InheritedmouseOverDisabled : Boolean = false
[static]
UIContainer
 InheritedneedsMeasurement : Boolean = true
Only setting percent width/heights changes the needsMeasurement flag which makes its parent container call measure on it.
MeasurableControl
 Inheritedpadding : Padding
Paddings define the unusable space within UIContainers that should not be used for measurement and layout.
UIControl
 InheritedparentContainer : UIControl
MeasurableControl
 InheritedpercentHeight : Number
MeasurableControl
 InheritedpercentUnusedHeight : Number
Set/get the percent height.
MeasurableControl
 InheritedpercentUnusedWidth : Number
Set/get the percent width.
MeasurableControl
 InheritedpercentWidth : Number
MeasurableControl
 InheritedscrollHeight : Number
scrollHeight is the max height a vertical scrollbar needs to scroll
UIContainer
 InheritedscrollWidth : Number
scrollWidth is the max width a horizontal scrollbar needs to scroll
UIContainer
 InheritedsizeInvalidated : Boolean = false
The flag to mark that the control's size has been invalidated.
MeasurableControl
 Inheritedskin : ISkin
UIControl
 InheritedskinnedControl : UIControl
UIControl
 InheritedstyleName : String
Defines the skin this component is registered to.
UIControl
 InheritedtoolTip : *
UIControl
 InheritedusesMeasurementStrategy : Boolean
This property defines whether measure() will be called during validateSize() or not.
MeasurableControl
 InheritedverticalScrollBar : ScrollBar
Returns The instance of the created verticalScrollBar or null if it was never created or is not visible.
UIContainer
 InheritedverticalScrollIncrement : Number
UIContainer
 InheritedverticalScrollPolicy : Boolean
UIContainer
 InheritedverticalScrollPosition : Number
UIContainer
 Inheritedvisible : Boolean
MeasurableControl
 Inheritedwidth : Number
Set/get the width of the control.
MeasurableControl
Protected Properties
 PropertyDefined by
 Inherited_backgroundPainter : IPainter
UIControl
 Inherited_clipContent : Boolean = true
UIContainer
 Inherited_contentHeight : Number = 0
UIContainer
 InheritedcontentPane : UIControl
UIContainer
 Inherited_contentWidth : Number = 0
UIContainer
 Inherited_creationCompleteFired : Boolean = false
MeasurableControl
  defaultDividerFactory : ClassFactory
[read-only]
DividedBox
 Inherited_dimensionsChanged : Boolean = true
MeasurableControl
  _dividerFactory : ClassFactory
DividedBox
  dividers : Array
DividedBox
 Inherited_dragEnabled : Boolean = false
UIControl
 Inherited_dropEnabled : Boolean = false
UIControl
 Inherited_explicitHeight : Number = NaN
MeasurableControl
 Inherited_explicitWidth : Number = NaN
MeasurableControl
 Inherited_horizontalScrollBar : ScrollBar
UIContainer
 Inherited_horizontalScrollPolicy : Boolean = true
UIContainer
 InheritedisMouseDown : Boolean = false
UIControl
 Inherited_layout : ILayout
UIContainer
 InheritedlayoutInvalidated : Boolean = true
UIContainer
 Inherited_maximumHeight : Number = NaN
MeasurableControl
 Inherited_maximumWidth : Number = NaN
MeasurableControl
 Inherited_measuredHeight : Number = NaN
MeasurableControl
 Inherited_measuredWidth : Number = NaN
MeasurableControl
 Inherited_mouseActionsDisabled : Boolean = false
MeasurableControl
 InheritedneedsHorizontalScrollBar : Boolean = false
UIContainer
 InheritedneedsVerticalScrollBar : Boolean = false
UIContainer
 Inherited_padding : Padding
UIControl
 Inherited_parentContainer : UIControl
MeasurableControl
 Inherited_percentHeight : Number
MeasurableControl
 Inherited_percentUnusedHeight : Number
MeasurableControl
 Inherited_percentUnusedWidth : Number
MeasurableControl
 Inherited_percentWidth : Number
MeasurableControl
 InheritedscrollBarsChanged : Boolean = false
UIContainer
 InheritedscrollX : Number = 0
UIContainer
 InheritedscrollY : Number = 0
UIContainer
 Inherited_skin : ISkin
UIControl
 Inherited_skinnedControl : UIControl
UIControl
 Inherited_styleName : String
UIControl
 Inherited_toolTipData : *
UIControl
 InheritedtoolTipRenderer : Class
UIControl
 Inherited_verticalScrollBar : ScrollBar
UIContainer
 Inherited_verticalScrollPolicy : Boolean = true
UIContainer
Public Methods
 MethodDefined by
  
DividedBox
 Inherited
addChild(child:DisplayObject):DisplayObject
UIContainer
  
addChildAt(child:DisplayObject, index:int):DisplayObject
DividedBox
 Inherited
MeasurableControl
 Inherited
Calls the queueValidateDisplayList if measure causes _dimensionsChanged to change to true.
UIControl
 Inherited
dispose():void
UIControl
 Inherited
Lays out the layoutChildren based ILayout object.
UIContainer
 Inherited
doOnAdded():void
[Temp] This function is called automatically by a parent UIControl if this is created as a child of a UIControl.
MeasurableControl
 Inherited
MeasurableControl
 Inherited
getChildByName(name:String):DisplayObject
UIContainer
 Inherited
Returns the explicitly defined height or the measured height computed by the measure function.
MeasurableControl
 Inherited
Returns the explicitly defined width or the measured number computed by the measure function.
MeasurableControl
 Inherited
When measure is called, it uses the widthForMeasurement and heightForMeasurement to calculate the sizes for percent-dimension based children
UIContainer
 Inherited
initialize():void
This happens only once when a child is first added to any parent.
UIContainer
 Inherited
invalidateSize(event:PyroEvent = null):void
Marks itself dirty and waits till either the container to validateSize or validates itself at the next enterframe if it has no parent container.
MeasurableControl
 Inherited
isMouseOver(event:MouseEvent):Boolean
Utility function to check if a mouseEvent happened while the mouse was over the displayObject
MeasurableControl
 Inherited
measure():void
Measure is called during the validateSize if the needsmeasurement flag is set.
UIControl
 Inherited
position(x:Number, y:Number):UIControl
UIControl
 Inherited
This function is called if the framework determines that dimensions of the control have changed.
MeasurableControl
 Inherited
UIContainer
 Inherited
UIControl
  
removeChild(child:DisplayObject):DisplayObject
DividedBox
 Inherited
MeasurableControl
 Inherited
size(w:*, h:*):UIControl
Convinience function for setting width and height in one call.
UIControl
 Inherited
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
Unlike UIControls, UIContainers do not apply a skin directly on themselves but interpret the skin file and apply them to the different children.
UIContainer
 Inherited
validateDisplayList(event:Event = null):void
validateDisplayList is called as a response to invalidateDisplayList.
MeasurableControl
 Inherited
validateSize():void
The validateSize function is called in response to a component declaring its size invalid (usually by calling invalidateSize()).
UIContainer
 Inherited
When measure is called, it uses the widthForMeasurement and heightForMeasurement to calculate the sizes for percent-dimension based children
UIContainer
Protected Methods
 MethodDefined by
 Inherited
Calculates the measuredHeight property.
MeasurableControl
 Inherited
Calculates the measuredWidth property.
MeasurableControl
 Inherited
UIContainer
 Inherited
UIContainer
 Inherited
UIContainer
 Inherited
This is where the new children should be created and then added to the displaylist.
MeasurableControl
 Inherited
UIContainer
 Inherited
UIContainer
 Inherited
disableEvent(event:Event):void
MeasurableControl
 Inherited
dispatchDragStart(event:MouseEvent):void
UIControl
 Inherited
Dispatches the UpdateComplete event
MeasurableControl
 Inherited
UIContainer
 Inherited
doQueuedValidateSize(event:Event):void
doQueueValidateSize is executed by the top level UIControl.
MeasurableControl
  
getDividerDragRect():Rectangle
Returns the Rectangle where the drop action is permitted
DividedBox
  
getNewDivider():DisplayObject
DividedBox
 Inherited
handleMouseWheel(event:MouseEvent):void
UIContainer
 Inherited
handlePreDragMouseDown(event:Event):void
This function is called if the UIControl instance is drag enabled and the user clicks the mouse down.
UIControl
 Inherited
UIContainer
 Inherited
UIContainer
 Inherited
MeasurableControl
 Inherited
onAddedToParent(event:Event):void
The event listener executed when this component has been added to the parent.
MeasurableControl
  
onDividerClick(event:MouseEvent):void
DividedBox
  
onDividerDoubleClick(event:MouseEvent):void
DividedBox
  
DividedBox
  
DividedBox
  
Event handler for when the divider begins dragging.
DividedBox
  
onDividerMouseDown(event:MouseEvent):void
Event handler for when a mouse is pressed over a divider.
DividedBox
 Inherited
Event listener for when the horizontal scrollbar is used.
UIContainer
 Inherited
UIContainer
 Inherited
Event listener for the horizontal scrollbar's creation and validation event.
UIContainer
 Inherited
onSkinnedControlResize(event:Event):void
Event handler for when the UIControl is applied as a Skin and the control it is skinning is resized.
UIControl
 Inherited
Event listener for when the vertical scrollbar is used.
UIContainer
 Inherited
UIContainer
 Inherited
Event listener for the vertical scrollbar's creation and validation event.
UIContainer
 Inherited
UIContainer
 Inherited
UIContainer
Events
 EventSummaryDefined by
    DividedBox
 Inherited  UIControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
Property detail
defaultDividerFactoryproperty
defaultDividerFactory:ClassFactory  [read-only]Implementation
    protected function get defaultDividerFactory():ClassFactory
_dividerFactoryproperty 
protected var _dividerFactory:ClassFactory
dividerFactoryproperty 
dividerFactory:ClassFactory  [read-write]Implementation
    public function get dividerFactory():ClassFactory
    public function set dividerFactory(value:ClassFactory):void
dividersproperty 
protected var dividers:Array
Constructor detail
DividedBox()constructor
public function DividedBox()
Method detail
addChildAt()method
public override function addChildAt(child:DisplayObject, index:int):DisplayObjectParameters
child:DisplayObject
 
index:int

Returns
DisplayObject
getDividerDragRect()method 
protected function getDividerDragRect():Rectangle

Returns the Rectangle where the drop action is permitted

Returns
Rectangle
getNewDivider()method 
protected function getNewDivider():DisplayObject

Returns
DisplayObject
onDividerClick()method 
protected function onDividerClick(event:MouseEvent):voidParameters
event:MouseEvent
onDividerDoubleClick()method 
protected function onDividerDoubleClick(event:MouseEvent):voidParameters
event:MouseEvent
onDividerDragDrop()method 
protected function onDividerDragDrop(event:DragEvent):voidParameters
event:DragEvent
onDividerDragEnter()method 
protected function onDividerDragEnter(event:DragEvent):voidParameters
event:DragEvent
onDividerDragInit()method 
protected function onDividerDragInit(event:DragEvent):void

Event handler for when the divider begins dragging. At this point, the DividedBox accepts drops of any divider.

Parameters
event:DragEvent
onDividerMouseDown()method 
protected function onDividerMouseDown(event:MouseEvent):void

Event handler for when a mouse is pressed over a divider. This begins the drag operation on the divider

Parameters
event:MouseEvent
removeChild()method 
public override function removeChild(child:DisplayObject):DisplayObjectParameters
child:DisplayObject

Returns
DisplayObject
Event detail
dividerDoubleClickevent 
Event object type: org.openPyro.containers.events.DividerEvent