| Package | org.robotlegs.base |
| Class | public class MediatorBase |
| Inheritance | MediatorBase Object |
| Implements | IMediator |
| Subclasses | Mediator |
IMediator implementation
| Property | Defined By | ||
|---|---|---|---|
| removed : Boolean
Internal
In the case of deffered instantiation, onRemove might get called before
onCreationComplete has fired. | MediatorBase | ||
| UIComponentClass : Class [static]
Flex framework work-around part #1
| MediatorBase | ||
| viewComponent : Object
Internal
This Mediator's View Component - used by the RobotLegs MVCS framework internally. | MediatorBase | ||
| Method | Defined By | ||
|---|---|---|---|
Creates a new Mediator object
| MediatorBase | ||
getViewComponent():Object
The IMediator's view component
| MediatorBase | ||
onRegister():void
Should be invoked by the IMediator itself when it is ready to be interacted with
Override and place your initialization code here
| MediatorBase | ||
onRemove():void
Should be invoked by the IMediator itself when it is ready to for cleanup
Override and place your cleanup code here
| MediatorBase | ||
preRegister():void
Should be invoked by the IMediatorMap during IMediator registration
| MediatorBase | ||
preRemove():void
Invoked when the IMediator has been removed by the IMediatorMap
| MediatorBase | ||
setViewComponent(viewComponent:Object):void
The IMediator's view component
| MediatorBase | ||
| Method | Defined By | ||
|---|---|---|---|
checkFlex():Boolean [static]
Flex framework work-around part #3
Checks for availability of the Flex framework by trying to get the class for UIComponent.
| MediatorBase | ||
onCreationComplete(e:Event):void
Flex framework work-around part #4
FlexEvent.CREATION_COMPLETE handler for this Mediator's View Component
| MediatorBase | ||
| Constant | Defined By | ||
|---|---|---|---|
| flexAvailable : Boolean [static]
Flex framework work-around part #2
| MediatorBase | ||
| removed | property |
protected var removed:BooleanInternal
In the case of deffered instantiation, onRemove might get called before onCreationComplete has fired. This here Bool helps us track that scenario.
| UIComponentClass | property |
protected static var UIComponentClass:ClassFlex framework work-around part #1
| viewComponent | property |
protected var viewComponent:ObjectInternal
This Mediator's View Component - used by the RobotLegs MVCS framework internally. You should declare a dependency on a concrete view component in your implementation instead of working with this property
| MediatorBase | () | Constructor |
public function MediatorBase()
Creates a new Mediator object
| checkFlex | () | method |
protected static function checkFlex():BooleanFlex framework work-around part #3
Checks for availability of the Flex framework by trying to get the class for UIComponent.
ReturnsBoolean |
| getViewComponent | () | method |
public function getViewComponent():Object
The IMediator's view component
Object — The view component
|
| onCreationComplete | () | method |
protected function onCreationComplete(e:Event):voidFlex framework work-around part #4
FlexEvent.CREATION_COMPLETE handler for this Mediator's View Component
Parameters
e:Event — The Flex FlexEvent event
|
| onRegister | () | method |
public function onRegister():void
Should be invoked by the IMediator itself when it is ready to be interacted with
Override and place your initialization code here
| onRemove | () | method |
public function onRemove():void
Should be invoked by the IMediator itself when it is ready to for cleanup
Override and place your cleanup code here
| preRegister | () | method |
public function preRegister():void
Should be invoked by the IMediatorMap during IMediator registration
| preRemove | () | method |
public function preRemove():void
Invoked when the IMediator has been removed by the IMediatorMap
| setViewComponent | () | method |
public function setViewComponent(viewComponent:Object):void
The IMediator's view component
Parameters
viewComponent:Object — view component
|
| flexAvailable | Constant |
protected static const flexAvailable:BooleanFlex framework work-around part #2