Class Index | Minimal

Classes


Class jabberwerx.JWModel (MINIMAL)


Extends jabberwerx.JWBase.

Base class for Model objects.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates a new jabberwerx.JWModel object.
Method Summary
Method Attributes Method Name and Description
 
applyEvent(name)
Establishes the event handling for a given event name.
 
event(name)
Locates the jabberwerx.EventNotifier for the given name.
 
Determines if this object should be persisted in object graphs.
Methods borrowed from class jabberwerx.JWBase:
destroy, getClassName, graphUnserialized, init, invocation, shouldBeSerializedInline, toString, wasUnserialized, willBeSerialized
Class Detail
jabberwerx.JWModel()
Creates a new jabberwerx.JWModel object.

A jabberwerx.JWModel object assumes it will be persisted in any saved object graphs, and assumes it is a source of events.

See:
jabberwerx.JWBase#shouldBeSavedWithGraph
Method Detail
{jabberwerx.EventNotifier} applyEvent(name)
Establishes the event handling for a given event name. This function ensures that a jabberwerx.EventDispatcher exists, and that the dispatcher contains a jabberwerx.EventNotifier for {name}.
Parameters:
{String} name
The event name
Returns:
{jabberwerx.EventNotifier} the notifier for {name}

{jabberwerx.EventNotifier} event(name)
Locates the jabberwerx.EventNotifier for the given name.
Parameters:
name
Returns:
{jabberwerx.EventNotifier} The notifier for {name}, or {null} if not found

{Boolean} shouldBeSavedWithGraph()
Determines if this object should be persisted in object graphs. This method always returns true.
Returns:
{Boolean} Always true

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 02 2014 13:23:42 GMT-0600 (MDT)