Package | org.spicefactory.parsley.core.view.lifecycle |
Class | public class AutoremoveLifecycle |
Inheritance | AutoremoveLifecycle flash.events.EventDispatcher |
Implements | ViewLifecycle |
This lifecycle implementation gets used per default when no custom lifecycle has been installed
for the type of the target and the autoremoveViewRoots
or autoremoveComponents
is set to true (the default). The former setting is only considered for the actual view roots of a Context,
the latter for all other regular components.
Method | Defined By | ||
---|---|---|---|
Starts controlling the lifecycle of the view instance contained in the specified
configuration instance. | AutoremoveLifecycle | ||
stop():void
Stops controlling the lifecycle of the view instance. | AutoremoveLifecycle |
start | () | method |
public function start(config:ViewConfiguration, context:Context):void
Starts controlling the lifecycle of the view instance contained in the specified
configuration instance. The primary purpose of this lifecycle instance is to invoke the init
and destroy
methods of the associated ViewProcessor
based on the lifecycle of the view.
Parameters
config:ViewConfiguration — the view configuration that holds the view this lifecycle instance should control
| |
context:Context — the Context associated with this view
|
stop | () | method |
public function stop():void
Stops controlling the lifecycle of the view instance.
After this method has been called this lifecycle instance should no longer
invoke the init
and destroy
methods of the associated
ViewProcessor
and free all resources it is holding.