Class jabberwerx.JWApp
Extends
jabberwerx.JWBase.
A top-level "Application" base class object used to simplify persistence. Applications are loaded from the store or created if no serialization exists. jabberwerx.JWApp init is only called if a new instance is created. This class divides the initialization into two sperate steps. appCreated and appInitialized, simplifying the lifetime management.
Constructor Attributes | Constructor Name and Description |
---|---|
Creates a new jabberwerx.JWApp Subclasses should not override this method. |
Method Attributes | Method Name and Description |
---|---|
Called once on object creation. |
|
Called when the application has been sucessfully created or loaded from the store. |
|
jabberwerx.JWApp are persisted by default. |
- Methods borrowed from class jabberwerx.JWBase:
- destroy, getClassName, graphUnserialized, init, invocation, shouldBeSerializedInline, toString, wasUnserialized, willBeSerialized
Creates a new jabberwerx.JWApp Subclasses should not override this method. Override appCreate instead.
Called once on object creation. jabberwerx.JWApp subclasses should override this method rather than init. jabberwerx.JWBase object creation should occurr here. JWA Event handlers may be registered if using Invocations. Essentially, any objects that may be persisted should be created here.
Called when the application has been sucessfully created or loaded from the store. jabberwerx.JWApp subclasses should override this method and should render and map HTML events within this method. Any sort of state that is not explicitly serialized (ie non Invocation events) should be set here.
jabberwerx.JWApp are persisted by default.
- Returns:
- {Boolean} Always true