Class Index | Minimal

Classes


Class jabberwerx.ui.MessageHistory


Extends jabberwerx.ui.JWView.

A MessageHistory widget is a GUI mechanism to display past messages for a given View.

This class provides the following events:

Class Summary
Constructor Attributes Constructor Name and Description
 

Creates a new MessageHistory.

Fields borrowed from class jabberwerx.ui.JWView:
jq
Method Summary
Method Attributes Method Name and Description
 
addMessage(entity, msg)

Adds a message to the MessageHistory widget.

 

Clears out all of the messages in this widget.

 
createDOM(doc)

Creates the DOM for the MessageHistory widget.

 

Restores the size of the widget to display correctly.

 
setBadge(data)

Changes or removes the badge for this MessageHistory.

 

This adjusts the size of the widget to display correctly.

Methods borrowed from class jabberwerx.ui.JWView:
destroy, destroyDOM, dimensions, height, hide, parent, persistOptions, remove, render, restoreDOM, restoreRender, shouldBeSavedWithGraph, show, wasUnserialized, width, willBeSerialized
Methods borrowed from class jabberwerx.JWModel:
applyEvent, event
Methods borrowed from class jabberwerx.JWBase:
getClassName, graphUnserialized, init, invocation, shouldBeSerializedInline, toString
Class Detail
jabberwerx.ui.MessageHistory()

Creates a new MessageHistory.

Method Detail
addMessage(entity, msg)

Adds a message to the MessageHistory widget.

Parameters:
{jabberwerx.Entity} entity Optional
The entity associated with the message.
{jabberwerx.Stanza} msg Optional
The message to be added to this widget.

clearHistory()

Clears out all of the messages in this widget.


{jQuery} createDOM(doc)

Creates the DOM for the MessageHistory widget.

Parameters:
{Document} doc Optional
The document to use for creating content.
Returns:
{jQuery} The element containing the newly created content.

restoreUpdate()

Restores the size of the widget to display correctly.

Returns:
Always true

setBadge(data)

Changes or removes the badge for this MessageHistory. The badge is extra state information to alert the user to (e.g. chat state changes).

Parameters:
{String|jQuery|Element|null} data Optional
The badge data, or null to remove badge

update()

This adjusts the size of the widget to display correctly.

Returns:
false if inherited returned false (if update was called before DOM has been created)

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