Class DataForm

Defined in DataForm.js
Constructor Summary
DataForm()
            This class is implemented in a rather procedural way, but it works for now.
 
Method Summary
getFieldDescription(fieldName)
           Returns the natural language description for a field TODO the schema allows 0 to unbounded, see if that's ever used in practice.
getFieldElem(fieldName)
           Returns a DOM Element for a field name.
getFieldLabel(fieldName)
           Gets the label of a field, as returned by the server
getFieldNames()
           Returna an array of field names
getFieldOptions(fieldName)
           Returns an array of options for a given radio field, in an array of { label, value }
getFieldType(fieldName)
           Gets the type of a given field ( as defined in XEP-0004 )-
getFieldValues(fieldName)
           Returns an array of values.
getInstructions()
           Returns the content of the first instruction node.
getTitle()
           Returns the title of the form TODO the schema allows 0 to unbounded, see if that's ever used in practice.
getType()
           Returns the type of form action.
isFieldRequired(fieldName)
           Returns whether a field is required or not.
read(node)
           Clones the given node and returns a reference to it
setFieldValues(fieldName, value, saveExisting)
           Set a field value, either singular or array.
write(node)
           Writes to the given node.
 
Constructor Detail

DataForm

DataForm()

Method Detail

getFieldDescription

getFieldDescription(fieldName)

getFieldElem

getFieldElem(fieldName)

getFieldLabel

getFieldLabel(fieldName)

getFieldNames

getFieldNames()

getFieldOptions

getFieldOptions(fieldName)

getFieldType

getFieldType(fieldName)

getFieldValues

getFieldValues(fieldName)

getInstructions

getInstructions()

getTitle

getTitle()

getType

getType()

isFieldRequired

isFieldRequired(fieldName)

read

read(node)

setFieldValues

setFieldValues(fieldName, value, saveExisting)

write

write(node)

Documentation generated by JsDoc Toolkit 1.4.1 on Tue Aug 26 2008 14:35:54 GMT-0500 (CDT)