| Package | org.openPyro.controls |
| Class | public class ComboBox |
| Inheritance | ComboBox UIControl MeasurableControl flash.display.Sprite |
| Property | Defined by | ||
|---|---|---|---|
![]() | backgroundPainter : IPainter
UIControls can have a backgroundPainter object attached that is
triggered everytime updateDisplayList is called.
| UIControl | |
| _bttnLabelFunction : Function | ComboBox | ||
| button : Button
[write-only]
| ComboBox | ||
![]() | creationCompleteFired : Boolean | MeasurableControl | |
| dataProvider : Array [write-only]
| ComboBox | ||
![]() | displayListInvalidated : Boolean = true
Flag to mark a dirty displaylist.
| MeasurableControl | |
![]() | dragData : Object | UIControl | |
![]() | dragEnabled : Boolean | UIControl | |
![]() | dropEnabled : Boolean | UIControl | |
![]() | explicitWidth : Number The height set in terms of actual pixels.
| MeasurableControl | |
![]() | forceInvalidateDisplayList : Boolean = false | MeasurableControl | |
![]() | height : Number
Set/get the height of the control.
| MeasurableControl | |
![]() | includeInLayout : Boolean
Specifies whether this control participates in the
layout system in OpenPyro.
| MeasurableControl | |
![]() | initialized : Boolean = false
Property indicates whether a control has been initialized
or not.
| MeasurableControl | |
| list : List
[write-only]
| ComboBox | ||
| maxDropDownHeight : Number
Sets the height of the dropdown list.
| ComboBox | ||
![]() | maximumHeight : Number | MeasurableControl | |
![]() | maximumWidth : Number | MeasurableControl | |
![]() | measuredHeight : 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 | |
![]() | measuredWidth : 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 | |
![]() | mouseActionsDisabled : Boolean | MeasurableControl | |
![]() | needsMeasurement : Boolean = true
Only setting percent width/heights changes the
needsMeasurement flag which makes its parent
container call measure on it.
| MeasurableControl | |
![]() | padding : Padding
Paddings define the unusable space within
UIContainers that should not be used for
measurement and layout.
| UIControl | |
![]() | parentContainer : UIControl | MeasurableControl | |
![]() | percentHeight : Number | MeasurableControl | |
![]() | percentUnusedHeight : Number
Set/get the percent height.
| MeasurableControl | |
![]() | percentUnusedWidth : Number
Set/get the percent width.
| MeasurableControl | |
![]() | percentWidth : Number | MeasurableControl | |
| selectedIndex : int [read-only]
| ComboBox | ||
![]() | sizeInvalidated : Boolean = false
The flag to mark that the control's size
has been invalidated.
| MeasurableControl | |
| skin : ISkin
[write-only]
| ComboBox | ||
![]() | skinnedControl : UIControl | UIControl | |
![]() | styleName : String
Defines the skin this component is registered to.
| UIControl | |
![]() | toolTip : * | UIControl | |
![]() | usesMeasurementStrategy : Boolean
This property defines whether measure() will be called during
validateSize() or not.
| MeasurableControl | |
![]() | visible : Boolean | MeasurableControl | |
![]() | width : Number
Set/get the width of the control.
| MeasurableControl | |
| Method | Defined by | ||
|---|---|---|---|
|
ComboBox()
| ComboBox | ||
![]() |
addChild(child:DisplayObject):DisplayObject
| UIControl | |
![]() |
addChildAt(child:DisplayObject, index:int):DisplayObject
| UIControl | |
![]() |
cancelMouseEvents():void
| MeasurableControl | |
![]() |
checkDisplayListValidation():void
Calls the queueValidateDisplayList if measure causes
_dimensionsChanged to change to true.
| UIControl | |
|
close():void
| ComboBox | ||
![]() |
dispose():void
| UIControl | |
![]() |
doLayoutChildren():void
| UIControl | |
![]() |
doOnAdded():void
[Temp] This function is called automatically
by a parent UIControl if this is created as a
child of a UIControl.
| MeasurableControl | |
![]() |
enableMouseEvents():void
| MeasurableControl | |
![]() |
getExplicitOrMeasuredHeight():Number
Returns the explicitly defined height or the measured
height computed by the
measure function. | MeasurableControl | |
![]() |
getExplicitOrMeasuredWidth():Number
Returns the explicitly defined width or the measured
number computed by the
measure function. | MeasurableControl | |
![]() |
heightForMeasurement():Number
When measure is called, it uses the widthForMeasurement and
heightForMeasurement to calculate the sizes for
percent-dimension based children
| UIControl | |
|
initialize():void
| ComboBox | ||
![]() |
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 | |
![]() |
isMouseOver(event:MouseEvent):Boolean
Utility function to check if a mouseEvent happened
while the mouse was over the displayObject
| MeasurableControl | |
![]() |
measure():void
Measure is called during the validateSize if
the needsmeasurement flag is set.
| UIControl | |
|
open():void
| ComboBox | ||
![]() | UIControl | ||
![]() |
queueValidateDisplayList(event:PyroEvent = null):void
This function is called if the framework determines that dimensions of the
control have changed.
| MeasurableControl | |
![]() |
removeBackgroundPainter():void
| UIControl | |
![]() |
removeChild(d:DisplayObject):DisplayObject
| UIControl | |
![]() |
resizeHandler():void
| MeasurableControl | |
![]() |
Convinience function for setting width and height
in one call.
| UIControl | |
|
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
| ComboBox | ||
![]() |
validateDisplayList(event:Event = null):void
validateDisplayList is called as a response to invalidateDisplayList.
| MeasurableControl | |
![]() |
validateSize():void
The validateSize function is called in response to
a component declaring its size invalid (usually
by calling invalidateSize()).
| MeasurableControl | |
![]() |
widthForMeasurement():Number
When measure is called, it uses the widthForMeasurement and
heightForMeasurement to calculate the sizes for
percent-dimension based children
| UIControl | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
calculateMeasuredHeight():void
Calculates the measuredHeight property.
| MeasurableControl | |
![]() |
calculateMeasuredWidth():void
Calculates the measuredWidth property.
| MeasurableControl | |
![]() |
createChildren():void
This is where the new children should
be created and then added to the displaylist.
| MeasurableControl | |
![]() |
disableEvent(event:Event):void
| MeasurableControl | |
![]() |
dispatchDragStart(event:MouseEvent):void
| UIControl | |
![]() |
dispatchUpdateComplete():void
Dispatches the UpdateComplete event
| MeasurableControl | |
![]() |
doChildBasedValidation():void
While UIControls can be sized based on the dimensions of the parent
container, if the explicit or percent dimension values are not specified,
the UIControl can look at its children's dimensions and base its
sizing off them.
| UIControl | |
![]() |
doQueuedValidateSize(event:Event):void
doQueueValidateSize is executed by the top level UIControl.
| MeasurableControl | |
![]() |
handlePreDragMouseDown(event:Event):void
This function is called if the UIControl instance is drag enabled
and the user clicks the mouse down.
| UIControl | |
![]() |
invalidateDisplayList():void
| MeasurableControl | |
![]() |
onAddedToParent(event:Event):void
The event listener executed when this component
has been added to the parent.
| MeasurableControl | |
|
onListChange(event:ListEvent):void
| ComboBox | ||
|
onListItemClick(event:ListEvent):void
| ComboBox | ||
![]() |
onSkinnedControlResize(event:Event):void
Event handler for when the UIControl is applied as a Skin
and the control it is skinning is resized.
| UIControl | |
|
onStageClick(event:MouseEvent):void
| ComboBox | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| ComboBox | ||||
| ComboBox | ||||
![]() | UIControl | |||
![]() | MeasurableControl | |||
| ComboBox | ||||
| ComboBox | ||||
![]() | MeasurableControl | |||
![]() | MeasurableControl | |||
![]() | MeasurableControl | |||
![]() | MeasurableControl | |||
![]() | MeasurableControl | |||
![]() | MeasurableControl | |||
![]() | MeasurableControl | |||
| _bttnLabelFunction | property |
public var _bttnLabelFunction:Function
| button | property |
| _dataProvider | property |
protected var _dataProvider:Array
| dataProvider | property |
dataProvider:Array [write-only]Implementation
public function set dataProvider(value:Array):void
| _isOpen | property |
protected var _isOpen:Boolean = false
| list | property |
| _maskShape | property |
protected var _maskShape:Shape
| _maxDropDownHeight | property |
protected var _maxDropDownHeight:Number = NaN
| maxDropDownHeight | property |
maxDropDownHeight:Number [read-write]
Sets the height of the dropdown list. If this value
is set and the list's data needs more height than that
was set as the maxDropDownHeight, the list
tries to create a scrollbar as long as the IComboButtonSkin
specifies a List skin with Scrollbars defined.
public function get maxDropDownHeight():Number
public function set maxDropDownHeight(value:Number):void
See also
| _selectedIndex | property |
protected var _selectedIndex:int = -1
| selectedIndex | property |
selectedIndex:int [read-only]Implementation
public function get selectedIndex():int
| skin | property |
| ComboBox | () | constructor |
public function ComboBox()
| close | () | method |
public function close():void
| initialize | () | method |
public override function initialize():void
| onListChange | () | method |
| onListItemClick | () | method |
| onStageClick | () | method |
protected function onStageClick(event:MouseEvent):voidParameters
event:MouseEvent |
| open | () | method |
public function open():void
| updateDisplayList | () | method |
public override function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):voidParameters
unscaledWidth:Number |
|
unscaledHeight:Number |
| change | event |
| close | event |
| itemClick | event |
| open | event |