Class Index | Minimal

Classes


Class jabberwerx.ui.RosterView.Grouping


Extends jabberwerx.ui.JWView.

View over a grouping of entities in a RosterView.

This class provides the following events:

Class Summary
Constructor Attributes Constructor Name and Description
 
jabberwerx.ui.RosterView.Grouping(roster, name, mode)

Creates a new Grouping with the given owning roster, grouping name, and mode.

Field Summary
Field Attributes Field Name and Description
 

The current mode for this Grouping.

 

The RosterView owning this Grouping.

Fields borrowed from class jabberwerx.ui.JWView:
jq
Method Summary
Method Attributes Method Name and Description
 

Collapses this grouping.

 
createDOM(doc)

Creates DOM for this Grouping.

 

Expands this grouping.

 

Finish entity view hydration.

 

This method toggles between expanded and collapsed.

 

Updates this Grouping's view.

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

Creates a new Grouping with the given owning roster, grouping name, and mode.

NOTE: This type should not be created directly. Instead it is creating in RosterView to visually group entities.

Parameters:
{jabberwerx.ui.RosterView} roster
The owning roster
{String} name
The grouping name ("" for the default)
{Number} mode
The grouping mode (one of jabberwerx.ui.RosterView.groupmode_single, jabberwerx.ui.RosterView.groupmode_collapsed, or jabberwerx.ui.RosterView.groupmode_expanded)
Field Detail
mode

The current mode for this Grouping. This value is one of the following:

NOTE: This propery should not be changed directly. Instead it is changed via #collapse, #expand, or #single.


{jabberwerx.ui.RosterView} roster

The RosterView owning this Grouping.

Method Detail
{Boolean} collapse()

Collapses this grouping. This method will make hidden all of the displayable entities it has, if previously expanded.

NOTE: This method does nothing if the current mode is jabberwerx.ui.RosterView.groupmode_collapsed or jabberwerx.ui.RosterView.groupmode_single.

Returns:
{Boolean} true if the grouping was collapsed.

{Element} createDOM(doc)

Creates DOM for this Grouping. This method generates the following structure:

 <div class='jabberwerx group section'>
     <div class='group title'>
         <span class='extrainfo'/>
         <a href='#'
             <span class='displayname'/>
         </a>
     </div>
     <div class='group items'>
         <!-- ContactPresenceViews are inserted here -->
     </div>
 </div>
Parameters:
{Document} doc
The owning document
Returns:
{Element} The created DOM

{Boolean} expand()

Expands this grouping. This method will make visible all of the displayable entities it has, if previously collapsed.

NOTE: This method does nothing if the current mode is jabberwerx.ui.RosterView.groupmode_expanded or jabberwerx.ui.RosterView.groupmode_single.

Returns:
{Boolean} true if the grouping was expanded

graphUnserialized()

Finish entity view hydration.


{Boolean} toggle()

This method toggles between expanded and collapsed.

NOTE: This method does nothing if the current mode is jabberwerx.ui.RosterView.groupmode_single.

Returns:
{Boolean} true if the grouping was collapsed or expanded.

{Boolean} update()

Updates this Grouping's view. This method does the following:

Returns:
{Boolean} true if this display is updatable

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