Package | artcustomer.framework.engines.component |
Class | public class ViewMediator |
Inheritance | ViewMediator CommandBroadcaster AbstractInteractiveComponent flash.events.EventDispatcher |
Implements | IComponent |
Subclasses | FlashComponent |
Method | Defined By | ||
---|---|---|---|
Constructor
| ViewMediator | ||
activate():void
Activate Component, useful for adding event listeners here. | AbstractInteractiveComponent | ||
addRegisteredView(id:String):void
Add registered View. | ViewMediator | ||
build():void [override]
Build Mediator. | ViewMediator | ||
contextResize():void
Called when Context is resized . | ViewMediator | ||
deactivate():void
Deactivate Component, useful for removed event listeners here. | AbstractInteractiveComponent | ||
destroy():void [override]
Destroy Mediator. | ViewMediator | ||
dispatchCommand(event:Event, macroCommandID:String):void
Dispatch Event for Command. | CommandBroadcaster | ||
getViewByID(id:String):IView
Get View by ID. | ViewMediator | ||
getViewByIndex(index:int):IView
Get View by index. | ViewMediator | ||
hasViewByID(id:String):Boolean
Test if View exists by ID. | ViewMediator | ||
hasViewByIndex(index:int):Boolean
Test if View exists by index. | ViewMediator | ||
registerView(view:Class, id:String, setup:Boolean = false, add:Boolean = false):void
Register View
| ViewMediator | ||
resetRegisteredView(id:String):void
Reset registered View. | ViewMediator | ||
setupRegisteredView(id:String):void
Setup registered View. | ViewMediator | ||
Swap Views (z-order in stack). | ViewMediator | ||
unregisterAllViews():void
Unregister all Views. | ViewMediator | ||
unregisterView(id:String):void
Unregister View. | ViewMediator |
Method | Defined By | ||
---|---|---|---|
onViewRegistered(view:IView):void
Called by Mediator when a view is registered. | ViewMediator | ||
updateAllViews(isViewSetup:Boolean, updateType:String, data:IViewData):void
Update all Views. | ViewMediator | ||
updateView(viewID:String, isViewSetup:Boolean, updateType:String, data:IViewData):void
Update View in Component. | ViewMediator |
ViewMediator | () | Constructor |
public function ViewMediator()
Constructor
addRegisteredView | () | method |
public final function addRegisteredView(id:String):void
Add registered View.
Parameters
id:String |
build | () | method |
override public function build():void
Build Mediator.
contextResize | () | method |
public final function contextResize():void
Called when Context is resized . Don't call it !
destroy | () | method |
override public function destroy():void
Destroy Mediator.
getViewByID | () | method |
public final function getViewByID(id:String):IView
Get View by ID.
Parameters
id:String |
IView —
|
getViewByIndex | () | method |
public final function getViewByIndex(index:int):IView
Get View by index.
Parameters
index:int |
IView —
|
hasViewByID | () | method |
public final function hasViewByID(id:String):Boolean
Test if View exists by ID.
Parameters
id:String — : ID of the View.
|
Boolean —
|
hasViewByIndex | () | method |
public final function hasViewByIndex(index:int):Boolean
Test if View exists by index.
Parameters
index:int — : Index of the View.
|
Boolean —
|
onViewRegistered | () | method |
protected function onViewRegistered(view:IView):void
Called by Mediator when a view is registered. Override it ! Inject Object Parent here !
Parameters
view:IView |
registerView | () | method |
public final function registerView(view:Class, id:String, setup:Boolean = false, add:Boolean = false):void
Register View
Parameters
view:Class — : IView
| |
id:String — : ID of the View
| |
setup:Boolean (default = false ) — : Auto Setup View
| |
add:Boolean (default = false )
|
resetRegisteredView | () | method |
public final function resetRegisteredView(id:String):void
Reset registered View.
Parameters
id:String |
setupRegisteredView | () | method |
public final function setupRegisteredView(id:String):void
Setup registered View.
Parameters
id:String |
swapViews | () | method |
public function swapViews(view1:IView, view2:IView):void
Swap Views (z-order in stack).
Parameters
view1:IView — The index position of the first IView.
| |
view2:IView — The index position of the second IView.
|
unregisterAllViews | () | method |
public final function unregisterAllViews():void
Unregister all Views.
unregisterView | () | method |
public final function unregisterView(id:String):void
Unregister View.
Parameters
id:String |
updateAllViews | () | method |
protected function updateAllViews(isViewSetup:Boolean, updateType:String, data:IViewData):void
Update all Views.
Parameters
isViewSetup:Boolean | |
updateType:String | |
data:IViewData |
updateView | () | method |
protected function updateView(viewID:String, isViewSetup:Boolean, updateType:String, data:IViewData):void
Update View in Component.
Parameters
viewID:String | |
isViewSetup:Boolean | |
updateType:String | |
data:IViewData |