org.jsxp.framework
Class ViewControllerLifeCycle

java.lang.Object
  extended by org.jsxp.framework.ViewControllerLifeCycle

public class ViewControllerLifeCycle
extends java.lang.Object

The Class ViewControllerLifeCycle. Get access to the life cycle of a view Controller by calling ViewController.getLifeCycle()

See Also:
ViewController

Nested Class Summary
static class ViewControllerLifeCycle.LifeCyclePhase
          The Enum LifeCyclePhase.
 
Method Summary
 void addPhaseListener(ViewControllerLifeCycle.LifeCyclePhase phase, PhaseListener observer)
          Adds the phase listener.
 ViewControllerLifeCycle.LifeCyclePhase getLifeCyclePhase()
          Gets the life cycle phase.
 void removePhaseListener(ViewControllerLifeCycle.LifeCyclePhase phase, PhaseListener observer)
          Removes the phase listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addPhaseListener

public void addPhaseListener(ViewControllerLifeCycle.LifeCyclePhase phase,
                             PhaseListener observer)
Adds the phase listener.

Parameters:
phase - the phase
observer - the observer

getLifeCyclePhase

public final ViewControllerLifeCycle.LifeCyclePhase getLifeCyclePhase()
Gets the life cycle phase.

Returns:
the life cycle phase

removePhaseListener

public void removePhaseListener(ViewControllerLifeCycle.LifeCyclePhase phase,
                                PhaseListener observer)
Removes the phase listener.

Parameters:
phase - the phase
observer - the observer


Copyright © 2012 Oliver Szymanski & David Tanzer