| Package | com.sibirjak.asdpc.core |
| Interface | public interface IView extends IDisplayObjectContainer, IDisplayObject, flash.events.IEventDispatcher, IStyleManagerClient, IViewPropertyManagerClient |
| Subinterfaces | IBindableView, IPopUpControl, IPopUpControlPopUp, IScrollBar, ITextField |
| Implementors | View |
| Property | Defined by | ||
|---|---|---|---|
| addedToStage : Boolean [read-only]
True, if the View is included in the display list.
| IView | ||
![]() | alpha : Number | IDisplayObject | |
![]() | height : Number | IDisplayObject | |
![]() | mask : DisplayObject | IDisplayObject | |
![]() | name : String | IDisplayObject | |
![]() | numChildren : int | IDisplayObjectContainer | |
![]() | parent : DisplayObjectContainer | IDisplayObjectContainer | |
![]() | scaleX : Number | IDisplayObject | |
![]() | scaleY : Number | IDisplayObject | |
![]() | stage : Stage | IDisplayObject | |
![]() | styleManager : StyleManager
The clients StyleManager instance.
| IStyleManagerClient | |
![]() | viewPropertyManager : ViewPropertyManager
The clients ViewPropertyManager instance.
| IViewPropertyManagerClient | |
![]() | visible : Boolean | IDisplayObject | |
![]() | width : Number | IDisplayObject | |
![]() | x : Number | IDisplayObject | |
![]() | y : Number | IDisplayObject | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
addChild(child:DisplayObject):DisplayObject
| IDisplayObjectContainer | |
![]() |
addChildAt(child:DisplayObject, index:int):DisplayObject
| IDisplayObjectContainer | |
|
cleanUp():void
Commands a view to immediately clean up all of its content.
| IView | ||
![]() |
contains(child:DisplayObject):Boolean
| IDisplayObjectContainer | |
![]() |
getChildAt(index:int):DisplayObject
| IDisplayObjectContainer | |
|
getDefaultStyles():Array
Returns a list of all default style properties.
| IView | ||
|
Returns a style value for a given style property.
| IView | ||
|
getViewProperty(property:String):*
Gets a property value.
| IView | ||
|
moveTo(x:int, y:int):void
Moves a view.
| IView | ||
![]() |
removeChild(child:DisplayObject):DisplayObject
| IDisplayObjectContainer | |
![]() |
removeChildAt(index:int):DisplayObject
| IDisplayObjectContainer | |
|
setDefaultStyles(defaultStyles:Array):void
Sets a list of default styles, which are referred to, if no
actual style could be found for a property.
| IView | ||
|
setSize(width:int, height:int):void
Sets the view dimensions.
| IView | ||
|
Sets a style to a client.
| IView | ||
|
Convenience method to set a number of styles values at once.
| IView | ||
|
Sets a property.
| IView | ||
![]() |
styleManagerStyleChangeHandler(property:String, value:*):void
Notifies the client about a change of a style value for that it
defines a default style.
| IStyleManagerClient | |
|
validateNow():void
Commands a view to immediately validate all of its
invalidate properties.
| IView | ||
| addedToStage | property |
addedToStage:Boolean [read-only]True, if the View is included in the display list.
Implementation public function get addedToStage():Boolean
| cleanUp | () | method |
public function cleanUp():voidCommands a view to immediately clean up all of its content.
The view is supposed to clean up any event listeners, property bindings and all other references.
The view is also in charge to clean up its children.
| getDefaultStyles | () | method |
public function getDefaultStyles():ArrayReturns a list of all default style properties.
Can be used for a complete style lookup. Returns only the properties not the values.
ReturnsArray — The default styles.
|
| getStyle | () | method |
public function getStyle(property:String):*Returns a style value for a given style property.
The order, how a style value is determined:
undefined.property:String — The style property.
|
* — The style value for that property or undefined.
|
| getViewProperty | () | method |
public function getViewProperty(property:String):*Gets a property value.
Parametersproperty:String — The name of the property.
|
* — The value of the property.
|
| moveTo | () | method |
public function moveTo(x:int, y:int):voidMoves a view.
This is rather a convenient method than a reliable access point. You may use view.x and view.y instead.
Parametersx:int — The x position.
|
|
y:int — The y position.
|
| setDefaultStyles | () | method |
public function setDefaultStyles(defaultStyles:Array):voidSets a list of default styles, which are referred to, if no actual style could be found for a property.
You need to set a default value for each style property, if you want to get notifications about value changes for that property.
Setting default styles to a yet initialised client should not be possible and not offered by the clients implementation.
You pass an array to this method of this form: [prop1, value1, prop2, value2, ..., propN, valueN]. The array.length must be a factor of 2 then.
ParametersdefaultStyles:Array — An array of style declarations.
|
| setSize | () | method |
public function setSize(width:int, height:int):voidSets the view dimensions.
The dimensions must be set before the view is added to the display list in order to have these value available during the entire view life cycle.
The size can be reset at any time of the view life. Setting the size after the view has been added to the display list usually resizes the particular view and all of its children.
Parameterswidth:int — The view width.
|
|
height:int — The view height.
|
| setStyle | () | method |
public function setStyle(property:String, value:Array, selectorChain:Array = null, excludeChain: = null):voidSets a style to a client.
It is possible to set a contextual style within a parent client. In this case the style value set affects only clients that match the given context.
It is also possible to set a contextual exclude style within a parent client. In this case the style value set does not affect clients that match the given context.
Parametersproperty:String — The name of the style.
|
|
value:Array — The value of the style.
|
|
selectorChain:Array (default = null) — An array of selectors.
|
|
excludeChain: (default = null) — An array of exclude selectors.
|
| setStyles | () | method |
public function setStyles(styles:Array, selectorChain:Array = null, excludeChain:Array = null):voidConvenience method to set a number of styles values at once.
You pass an array to this method of this form: [prop1, value1, prop2, value2, ..., propN, valueN]. The array.length must be a factor of 2 then.
It is possible to set a contextual style within a parent client. In this case the style value set affects only to clients that match with the given context.
It is also possible to set a contextual exclude style within a parent client. In this case the style value set does not affect clients that match the given context.
Parametersstyles:Array — An array of style declarations.
|
|
selectorChain:Array (default = null) — An array of selectors.
|
|
excludeChain:Array (default = null) — An array of exclude selectors.
|
| setViewProperty | () | method |
public function setViewProperty(property:String, value:):voidSets a property.
Properties can be used to enable state distinction by display descendants.
Parametersproperty:String — The name of the property.
|
|
value: — The value of the property.
|
| validateNow | () | method |
public function validateNow():voidCommands a view to immediately validate all of its invalidate properties.
A good place is after a number of properties has been set to a view, and the view should now update its representation.