| Package | qnx.ui.core |
| Class | public class SkinnableComponent |
| Inheritance | SkinnableComponent UIComponent flash.display.MovieClip |
| Subclasses | ActivityIndicator, Button, CellRenderer, ProgressBar, TextInput |
SkinnableComponent class is the base class for components that can be skinned.
| Method | Defined By | ||
|---|---|---|---|
Constructs a SkinnableComponent instance. | SkinnableComponent | ||
![]() | destroy():void
Call this method when you want to have your object collected by the garbage collector. | UIComponent | |
![]() | drawNow():void
Calls the draw() method. | UIComponent | |
![]() | invalidate(property:String, invalidateNow:Boolean = false):void
Marks the property as invalid and the draw() method is called on the next frame or the next render, whichever comes first. | UIComponent | |
![]() | setPosition(x:Number, y:Number):void
Sets the x and y position of the component. | UIComponent | |
![]() | setSize(w:Number, h:Number):void
Sets the width and height of the component. | UIComponent | |
setSkin(cellSkin:Object):void
Set the skin object on the component for it to render. | SkinnableComponent | ||
| SkinnableComponent | () | Constructor |
public function SkinnableComponent()
Constructs a SkinnableComponent instance.
| setSkin | () | method |
public function setSkin(cellSkin:Object):voidSet the skin object on the component for it to render.
If a skin is found, it is removed and a new skin is created.
The cellSkin parameter can be one of three different types: Class, String, or DisplayObject instance.
Class, a new instance of that class is created and returned.String, the flash.utils.getDefinitionByName will attempt to create a new method.DisplayObject instance, the x and y values of the instance are set to 0 and returned.Skins must implement the ISkin interface.
Parameters
cellSkin:Object |
See also