This class is the base class for skin elements
which draw themselves programmatically.
protected var _deferLayout:Boolean = false
height:Number [read-write]Implementation
public function get height():Number
public function set height(value:Number):void
initialized:Boolean [read-write]Implementation
public function get initialized():Boolean
public function set initialized(value:Boolean):void
protected var invalidateDisplayListFlag:Boolean = false
protected var invalidatePropertiesFlag:Boolean = false
protected var invalidateSizeFlag:Boolean = false
measuredHeight:Number [read-only]
The measured height of this object.
Implementation
public function get measuredHeight():Number
measuredWidth:Number [read-only]
The measured width of this object.
Implementation
public function get measuredWidth():Number
nestLevel:int [read-write]Implementation
public function get nestLevel():int
public function set nestLevel(value:int):void
processedDescriptors:Boolean [read-write]Implementation
public function get processedDescriptors():Boolean
public function set processedDescriptors(value:Boolean):void
protected var sizeChanged:Boolean = false
styleName:Object [read-write]
A parent component used to obtain style values. This is typically set to the
component that created this skin.
Implementation
public function get styleName():Object
public function set styleName(value:Object):void
updateCompletePendingFlag:Boolean [read-write]Implementation
public function get updateCompletePendingFlag():Boolean
public function set updateCompletePendingFlag(value:Boolean):void
width:Number [read-write]Implementation
public function get width():Number
public function set width(value:Number):void
public function ProgrammaticSkin()
Constructor.
protected function commitProperties():void
protected function deferLayout(state:Boolean):voidParameters
public function getStyle(styleProp:String):*
Returns the value of the specified style property.
Parameters
| styleProp:String — Name of the style property.
|
Returns
| * — The style value. This can be any type of object that style properties can be, such as
int, Number, String, etc.
|
public function invalidateDisplayList():void
public function invalidateProperties():void
public function invalidateSize():void
protected function measure():void
public function move(x:Number, y:Number):void
Moves this object to the specified x and y coordinates.
Parameters
| x:Number — The horizontal position, in pixels.
|
| |
| y:Number — The vertical position, in pixels.
|
protected function nestLevelChanged():void
public function setActualSize(newWidth:Number, newHeight:Number):void
Sets the height and width of this object.
Parameters
| newWidth:Number — The width, in pixels, of this object.
|
| |
| newHeight:Number — The height, in pixels, of this object.
|
public function styleChanged(styleProp:String):void
Whenever any style changes, redraw this skin.
Subclasses can override this method
and perform a more specific test before calling invalidateDisplayList().
Parameters
| styleProp:String — The name of the style property that changed, or null
if all styles have changed.
|
protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):voidParameters
| unscaledWidth:Number |
| |
| unscaledHeight:Number |
public function validateDisplayList():void
public function validateNow():void
Validate and update the properties and layout of this object
and redraw it, if necessary.
public function validateProperties():void
public function validateSize(recursive:Boolean = false):voidParameters
| recursive:Boolean (default = false) |