View
| Kind of class: | class |
|---|---|
| Inherits from: | UIComponent < UIObject < MovieClip |
| Known subclasses: | |
| Classpath: | mx.core.View |
| File last modified: | Tuesday, 18 December 2007, 15:44:38 |
base class for views/containers
Summary
Constructor
Class properties
- symbolName : String
- symbolOwner : Object
- version : String
- childNameBase : String
Class properties inherited from UIComponent
Class properties inherited from UIObject
Instance properties
- className : String
- name of this class
- border_mc : RectBorder
- boundingBox_mc : MovieClip
- __tabIndex : Number
- depth : Number
- createClassChildAtDepth : Function
- loadExternal : Function
- hasBeenLayedOut : Boolean
- _loadExternalClass : String
- numChildren : Number
- get the number of children in this view
- tabIndex : Number
- By default, views are not tabstops so tabIndex will
Instance properties inherited from UIComponent
Instance properties inherited from UIObject
__height __onUnload __width _color _endInit _id _maxHeight _maxWidth _minHeight _minWidth _preferredHeight _preferredWidth _tf _topmost addEventListener bottom buildDepthTable changeColorStyleInChildren changeTextStyleInChildren childrenCreated className clipParameters color createAccessibilityImplementation createChildAtDepth createClassChildAtDepth createEvent dispatchEvent embedFonts findNextAvailableDepth fontFamily fontSize fontStyle fontWeight handleEvent height idNames ignoreClassStyleDeclaration initProperties invalidateFlag left lineColor lineWidth marginLeft marginRight methodTable minHeight minWidth notifyStyleChangeInChildren removeEventListener right scaleX scaleY setStyle stylecache styleName tabEnabled textAlign textDecoration textIndent tfList top validateNow visible width x y
Instance methods
- init : Void
- size : Void
- draw : Void
- addLayoutObject (object:Object) : Void
- createChild (className, instanceName:String, initProps:Object) : MovieClip
- add a new child object
- getChildAt (childIndex:Number) : UIObject
- get the Nth child object
- destroyChildAt (childIndex:Number) : Void
- destroy the Nth child object.
- initLayout : Void
- doLayout : Void
- createChildren : Void
- convertToUIObject (obj:MovieClip) : Void
- childLoaded (obj:MovieClip) : Void
Instance methods inherited from UIObject
__getTextFormat _createChildren _getTextFormat cancelAllDoLaters constructObject createChildren createClassObject createEmptyObject createLabel createObject createSkin destroyObject doLater doLaterDispatcher draw drawRect getClassStyleDeclaration getMinHeight getMinWidth getSkinIDName getStyle getStyleName init initFromClipParameters invalidate invalidateStyle move redraw setColor setMinHeight setMinWidth setSize setSkin setVisible size
Event handlers
Event handlers inherited from UIComponent
Constructor
View
function View (
)
Class properties
childNameBase
static childNameBase:String = "_child"
(read)
symbolName
static symbolName:String = "View"
(read)
symbolOwner
static symbolOwner:Object = mx.core.View
(read)
version
static version:String = "2.0.2.127"
(read)
Instance properties
__tabIndex
__tabIndex:Number
(read)
_loadExternalClass
private _loadExternalClass:String = "UIComponent"
(read)
border_mc
boundingBox_mc
boundingBox_mc:MovieClip
(read)
className
className:String = "View"
(read)
name of this class
createClassChildAtDepth
createClassChildAtDepth:Function
(read)
depth
depth:Number
(read)
hasBeenLayedOut
private hasBeenLayedOut:Boolean = false
(read)
loadExternal
loadExternal:Function
(read)
numChildren
numChildren:Number
(read)
get the number of children in this view
tabIndex
tabIndex:Number
(read,write)
By default, views are not tabstops so tabIndex will
be undefined. However, some views can be tabstops and will therefore
return a tabIndex
be undefined. However, some views can be tabstops and will therefore
return a tabIndex
Class methods
extension
static function extension (
)
Instance methods
addLayoutObject
function addLayoutObject (
object:Object) : Void
Parameters:
object:
the layout object
childLoaded
function childLoaded (
obj:MovieClip) : Void
Parameters:
obj:
the loaded child
convertToUIObject
function convertToUIObject (
obj:MovieClip) : Void
createChild
function createChild (
className,
instanceName:String,
initProps:Object) : MovieClip
add a new child object
Parameters:
className :
the name of the symbol, a reference to a class, or file path or URL to the external content
instanceName:
the instance name of the child
initProps :
object containing initialization properties
Returns:
- reference to the child object
createChildren
function createChildren (
) : Void
destroyChildAt
function destroyChildAt (
childIndex:Number) : Void
destroy the Nth child object. Remaining child objects get renumbered
Parameters:
childIndex:
a number from 0 to N-1
Returns:
- a reference to the child
doLayout
function doLayout (
) : Void
draw
function draw (
) : Void
getChildAt
get the Nth child object
Parameters:
childIndex:
a number from 0 to N-1
Returns:
- a reference to the child
initLayout
function initLayout (
) : Void