Class jabberwerx.PubSubItem
Extends
jabberwerx.JWModel.
Represents a pubsub item - an XML fragment which is published to a pubsub node.
Constructor Attributes | Constructor Name and Description |
---|---|
Creates a new PubSubItem with the given DOM element. |
Field Attributes | Field Name and Description |
---|---|
The payload of the item as a DOM element, or null if none. |
|
The unique identifier of this item in the context of a pubsub node. |
|
The publisher of this item, or null if unknown. |
|
The timestamp for this item, or the current time at creation if not otherwise known. |
Method Attributes | Method Name and Description |
---|---|
destroy()
Destroys this PubSubItem. |
|
Called just after this object is unserialized. |
|
Called when this object is about to be serialized. |
- Methods borrowed from class jabberwerx.JWModel:
- applyEvent, event, shouldBeSavedWithGraph
- Methods borrowed from class jabberwerx.JWBase:
- getClassName, graphUnserialized, init, invocation, shouldBeSerializedInline, toString
Creates a new PubSubItem with the given DOM element.
NOTE: This type should not be created directly. Instead, the PubSubNode creates instances of PubSubItem as needed.
- Parameters:
- {Element} dom
- The <item/> element
The payload of the item as a DOM element, or null if none.
The unique identifier of this item in the context of a pubsub node.
The publisher of this item, or null if unknown.
The timestamp for this item, or the current time at creation if not otherwise known.
Destroys this PubSubItem.
Called just after this object is unserialized. This method converts the timestamp from the number of seconds since the Epoch to a Date object.
Called when this object is about to be serialized. This method converts the timestamp from a Date object to the number of seconds since the Epoch.