Packageorg.openPyro.controls
Classpublic class Tree
InheritanceTree Inheritance List Inheritance UIContainer Inheritance UIControl Inheritance MeasurableControl Inheritance flash.display.Sprite



Public Properties
 PropertyDefined by
 InheritedautoResetScrollOnDataProviderChange : Boolean = true
Resets scrolls when the dataProvider changes
List
 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
 InheriteddataProvider : Object
List
 InheriteddisplayListInvalidated : Boolean = true
Flag to mark a dirty displaylist.
MeasurableControl
 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
 InheriteditemRenderer : ClassFactory
List
 InheritedlabelFunction : Function
List
 Inheritedlayout : ILayout
Containers can be assigned different layouts which control the positioning of the different controls.
UIContainer
 InheritedlayoutChildren : Array
List
 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
 InheritedoriginalRawDataProvider : Object
List
 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
 InheritedselectedIndex : int
List
 InheritedselectedItem : Object
List
  showRoot : Boolean
Tree
 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
 Inherited_dataProvider : ICollection
List
 Inherited_dimensionsChanged : Boolean = true
MeasurableControl
 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_labelFunction : Function
List
 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_originalRawDataProvider : Object
List
 Inherited_padding : Padding
UIControl
 Inherited_parentContainer : UIControl
MeasurableControl
 Inherited_percentHeight : Number
MeasurableControl
 Inherited_percentUnusedHeight : Number
MeasurableControl
 Inherited_percentUnusedWidth : Number
MeasurableControl
 Inherited_percentWidth : Number
MeasurableControl
 Inherited_rendererPool : ObjectPool
List
 Inheritedrenderers : Array
List
 InheritedscrollBarsChanged : Boolean = false
UIContainer
 InheritedscrollX : Number = 0
UIContainer
 InheritedscrollY : Number = 0
UIContainer
 Inherited_selectedIndex : int = -1
List
 Inherited_selectedItem : Object
List
 InheritedselectedRenderer : DisplayObject
List
  _showRoot : Boolean = true
Tree
 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
  
Tree()
Tree
 Inherited
addChild(child:DisplayObject):DisplayObject
UIContainer
 Inherited
addChildAt(child:DisplayObject, index:int):DisplayObject
UIContainer
 Inherited
MeasurableControl
 Inherited
Calls the queueValidateDisplayList if measure causes _dimensionsChanged to change to true.
UIControl
  
Tree
 Inherited
dataToItemRenderer(data:*):DisplayObject
List
 Inherited
List
 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
  
Tree
 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
itemRendererToIndex(renderer:DisplayObject):int
List
 Inherited
measure():void
Measure is called during the validateSize if the needsmeasurement flag is set.
UIControl
  
Tree
 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
 Inherited
removeChild(child:DisplayObject):DisplayObject
UIContainer
 Inherited
MeasurableControl
 Inherited
size(w:*, h:*):UIControl
Convinience function for setting width and height in one call.
UIControl
  
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
Tree
 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
  
convertDataToCollection(dp:Object):void
Tree
  
Tree
 Inherited
UIContainer
 Inherited
List
 Inherited
UIContainer
 Inherited
List
 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
 Inherited
List
 Inherited
List
 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
handleRendererClick(event:MouseEvent):void
List
  
Tree
 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
 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
List
 Inherited
UIContainer
  
setRendererData(renderer:DisplayObject, data:Object, index:int):void
Tree
 Inherited
UIContainer
Events
 EventSummaryDefined by
 Inherited  List
 Inherited  UIControl
 Inherited  MeasurableControl
 Inherited  List
 Inherited  MeasurableControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
Property detail
_showRootproperty
protected var _showRoot:Boolean = true
showRootproperty 
showRoot:Boolean  [read-write]Implementation
    public function get showRoot():Boolean
    public function set showRoot(value:Boolean):void
Constructor detail
Tree()constructor
public function Tree()
Method detail
closeNode()method
public function closeNode(node:XMLNodeDescriptor):voidParameters
node:XMLNodeDescriptor
convertDataToCollection()method 
protected override function convertDataToCollection(dp:Object):voidParameters
dp:Object
createChildren()method 
protected override function createChildren():void
getNodeByLabel()method 
public function getNodeByLabel(str:String):XMLNodeDescriptorParameters
str:String

Returns
XMLNodeDescriptor
handleRotatorClick()method 
protected function handleRotatorClick(event:TreeEvent):voidParameters
event:TreeEvent
openNode()method 
public function openNode(node:XMLNodeDescriptor):voidParameters
node:XMLNodeDescriptor
setRendererData()method 
protected override function setRendererData(renderer:DisplayObject, data:Object, index:int):voidParameters
renderer:DisplayObject
 
data:Object
 
index:int
updateDisplayList()method 
public override function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):voidParameters
unscaledWidth:Number
 
unscaledHeight:Number