Packageorg.openPyro.controls
Classpublic class List
InheritanceList Inheritance UIContainer Inheritance UIControl Inheritance MeasurableControl Inheritance flash.display.Sprite
SubclassesTree



Public Properties
 PropertyDefined by
  autoResetScrollOnDataProviderChange : 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
  dataProvider : 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
  itemRenderer : ClassFactory
[write-only]
List
  labelFunction : Function
List
 Inheritedlayout : ILayout
Containers can be assigned different layouts which control the positioning of the different controls.
UIContainer
  layoutChildren : Array
[read-only]
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
  originalRawDataProvider : Object
[read-only]
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
  selectedIndex : int
List
  selectedItem : Object
List
 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
  _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
  _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
  _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
  _rendererPool : ObjectPool
List
  renderers : Array
List
 InheritedscrollBarsChanged : Boolean = false
UIContainer
 InheritedscrollX : Number = 0
UIContainer
 InheritedscrollY : Number = 0
UIContainer
  _selectedIndex : int = -1
List
  _selectedItem : Object
List
  selectedRenderer : DisplayObject
List
 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
  
List()
List
 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
  
dataToItemRenderer(data:*):DisplayObject
List
  
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
 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
  
itemRendererToIndex(renderer:DisplayObject):int
List
 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
 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
List
 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
Converts an Array to ArrayCollection or xml to XMLCollection.
List
  
List
 Inherited
UIContainer
  
List
 Inherited
UIContainer
  
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
  
List
  
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
  
handleRendererClick(event:MouseEvent):void
List
 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
  
List
 Inherited
UIContainer
  
setRendererData(renderer:DisplayObject, data:Object, index:int):void
List
 Inherited
UIContainer
Events
 EventSummaryDefined by
    List
 Inherited  UIControl
 Inherited  MeasurableControl
    List
 Inherited  MeasurableControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
Property detail
autoResetScrollOnDataProviderChangeproperty
public var autoResetScrollOnDataProviderChange:Boolean = true

Resets scrolls when the dataProvider changes

_dataProviderproperty 
protected var _dataProvider:ICollection
dataProviderproperty 
dataProvider:Object  [read-write]Implementation
    public function get dataProvider():Object
    public function set dataProvider(value:Object):void
itemRendererproperty 
itemRenderer:ClassFactory  [write-only]Implementation
    public function set itemRenderer(value:ClassFactory):void
_labelFunctionproperty 
protected var _labelFunction:Function
labelFunctionproperty 
labelFunction:Function  [read-write]Implementation
    public function get labelFunction():Function
    public function set labelFunction(value:Function):void
layoutChildrenproperty 
layoutChildren:Array  [read-only]Implementation
    public function get layoutChildren():Array
_originalRawDataProviderproperty 
protected var _originalRawDataProvider:Object
originalRawDataProviderproperty 
originalRawDataProvider:Object  [read-only]Implementation
    public function get originalRawDataProvider():Object
_rendererPoolproperty 
protected var _rendererPool:ObjectPool
renderersproperty 
protected var renderers:Array
_selectedIndexproperty 
protected var _selectedIndex:int = -1
selectedIndexproperty 
selectedIndex:int  [read-write]Implementation
    public function get selectedIndex():int
    public function set selectedIndex(value:int):void
_selectedItemproperty 
protected var _selectedItem:Object
selectedItemproperty 
selectedItem:Object  [read-write]Implementation
    public function get selectedItem():Object
    public function set selectedItem(value:Object):void
selectedRendererproperty 
protected var selectedRenderer:DisplayObject
Constructor detail
List()constructor
public function List()
Method detail
convertDataToCollection()method
protected function convertDataToCollection(dp:Object):void

Converts an Array to ArrayCollection or xml to XMLCollection. Written as a separate function so that overriding classes may massage the data as needed

Parameters
dp:Object
createChildren()method 
protected override function createChildren():void
createRenderers()method 
protected function createRenderers():void
dataToItemRenderer()method 
public function dataToItemRenderer(data:*):DisplayObjectParameters
data:*

Returns
DisplayObject
dataToItemRendererIndex()method 
public function dataToItemRendererIndex(data:*):intParameters
data:*

Returns
int
destroyOldRenderers()method 
protected function destroyOldRenderers():void
handDataProviderItemsAdded()method 
protected function handDataProviderItemsAdded(event:CollectionEvent):voidParameters
event:CollectionEvent
handleDataProviderItemsRemoved()method 
protected function handleDataProviderItemsRemoved(event:CollectionEvent):voidParameters
event:CollectionEvent
handleRendererClick()method 
protected function handleRendererClick(event:MouseEvent):voidParameters
event:MouseEvent
itemRendererToIndex()method 
public function itemRendererToIndex(renderer:DisplayObject):intParameters
renderer:DisplayObject

Returns
int
returnRenderersToPool()method 
protected function returnRenderersToPool():void
setRendererData()method 
protected 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
Event detail
changeevent 
Event object type: org.openPyro.controls.events.ListEvent

itemClickevent  
Event object type: org.openPyro.controls.events.ListEvent