Class Index | Minimal

Classes


Class jabberwerx.XDataFormItem


Extends JWModel.

Holds collection of jabberwerx.XDataFormField objects. This class is used in with XDataForm type "result".

Class Summary
Constructor Attributes Constructor Name and Description
 

Creates a new XDataFormItem based on the passed DOM element.

Field Summary
Field Attributes Field Name and Description
 
Array of jabbewerx.XDataFormField objects
Method Summary
Method Attributes Method Name and Description
 

Destroys this item.

 
equals(item)

Determines if the given item matches this item.

 

Gets the DOM of the item element.

 

Returns field based on var name or null if not found or name is null.

 

Returns field values based on var name or null if not found or name is null.

Class Detail
jabberwerx.XDataFormItem(itemNode)

Creates a new XDataFormItem based on the passed DOM element.

Parameters:
{Element} itemNode Optional
The DOM element representing the item node.
Throws:
{TypeError}
If parameter is not valid
Field Detail
{jabbewerx.XDataFormField[]} fields
Array of jabbewerx.XDataFormField objects
Method Detail
destroy()

Destroys this item.


{Boolean} equals(item)

Determines if the given item matches this item. This method returns true if all fields are equal.

Parameters:
{jabberwerx.XDataFormItem} item
The item to match against
Returns:
{Boolean} true if {item}'s fields matches this XDataFormItem.

{Element} getDOM()

Gets the DOM of the item element.

Returns:
{Element} DOM element of the item

{jabberwerx.XDataFormField} getFieldByVar(name)

Returns field based on var name or null if not found or name is null.

Parameters:
{String} name Optional
Var name for the field
Returns:
{jabberwerx.XDataFormField}

{String} getFieldValues(name)

Returns field values based on var name or null if not found or name is null.

Parameters:
{String} name Optional
Var name for the field
Returns:
{String} 'FORM_TYPE' value for the form

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