Class jabberwerx.JWModel (MINIMAL)
Extends
jabberwerx.JWBase.
Base class for Model objects.
Constructor Attributes | Constructor Name and Description |
---|---|
Creates a new jabberwerx.JWModel object.
|
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.
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