Class jabberwerx.ui.MucView
Extends
jabberwerx.ui.JWView.
A view for a MUC room pane.
This class provides the following events:
Constructor Attributes | Constructor Name and Description |
---|---|
jabberwerx.ui.MucView(mucRoom)
Creates a new MucView with the given MUCRoom. |
Field Attributes | Field Name and Description |
---|---|
<static> |
jabberwerx.ui.MucView.defaultOccupantsListSize
The default size for the occupants list in the MucView. |
<static> |
jabberwerx.ui.MucView.occupantsListSizeInvalidError
Error thrown when the requested occupants list size is not valid (not a positive integer). |
- Fields borrowed from class jabberwerx.ui.JWView:
- jq
Method Attributes | Method Name and Description |
---|---|
Clears the MessageHistory pane. |
|
createDOM(doc)
Creates the DOM for MucView consisting of a RosterView, a title area (room name and subject), a MessageHistory and a TextInput widget. |
|
destroy()
Destroys this MucView. |
|
height(h, noupdate)
Overloads jabberwerx.ui.JWView's height. |
|
occupantsListSize(size)
Retrieves or changes the size (width) of the occupants list. |
|
setTabControl(tab)
Sets or clears the tab control. |
|
update()
Triggers an update of this MucView. |
|
width(w, noupdate)
Overloads jabberwerx.ui.JWView's width. |
- Methods borrowed from class jabberwerx.ui.JWView:
- destroyDOM, dimensions, hide, parent, persistOptions, remove, render, restoreDOM, restoreRender, restoreUpdate, shouldBeSavedWithGraph, show, wasUnserialized, willBeSerialized
- Methods borrowed from class jabberwerx.JWModel:
- applyEvent, event
- Methods borrowed from class jabberwerx.JWBase:
- getClassName, graphUnserialized, init, invocation, shouldBeSerializedInline, toString
Creates a new MucView with the given MUCRoom.
- Parameters:
- {jabberwerx.MUCRoom} mucRoom
- The MUC room associated with this muc view.
- Throws:
- {TypeError}
- if {mucRoom} is not valid
The default size for the occupants list in the MucView.
Error thrown when the requested occupants list size is not valid (not a positive integer).
Clears the MessageHistory pane.
Creates the DOM for MucView consisting of a RosterView, a title area (room name and subject), a MessageHistory and a TextInput widget.
- Parameters:
- {Document} doc
- The document to use for creating content.
- Returns:
- {jQuery} The element containing the widgets.
Destroys this MucView. This unbinds all of the bound events this object has.
Overloads jabberwerx.ui.JWView's height. If setting the height, this makes sure the MessageHistory pane takes up the remaining space.
- Parameters:
- {Number|String} h Optional
- The new height (or undefined to retrieve the current height)
- {Boolean} noupdate Optional
- true if the view should NOT be updated
- Returns:
- {Number|jabberwerx.ui.JWView} The current height (if retrieving); or this jabberwerx.ui.JWView (if changing)
Retrieves or changes the size (width) of the occupants list.
- Parameters:
- size
- Throws:
- {jabberwerx.ui.MucView.occupantsListSizeInvalidError}
- If {size} is specified but is not a positive number
- Returns:
- {Number|jabberwerx.ui.MucView} The current tab size (if getting), or this MucView (if setting)
Sets or clears the tab control. This method overrides the mixin jabberwerx.ui.Tabbable#setTabControl to set the label, and bind events for updating when the MUCRoom receives a broadcast or a a subject changed event.
- Parameters:
- {jabberwerx.ui.TabbedView.Tab} tab Optional
- The new tab, or null if being removed from a tabbed view.
Triggers an update of this MucView. This goes through all of the widgets associated with this view and calls their updates.
Overloads jabberwerx.ui.JWView's width. If setting the width, this makes sure that new width gets propogated to the underlining widgets.
- Parameters:
- {Number|String} w Optional
- The new width (or undefined to retrieve the current width)
- {Boolean} noupdate Optional
- true if the view should NOT be updated
- Returns:
- {Number|jabberwerx.ui.JWView} The current width (if retrieving); or this jabberwerx.ui.JWView (if changing)