Zimlet JavaScript API Reference - ZmEditContactView

Class ZmEditContactView


Extends DwtForm.

This class represents the edit contact view.

Defined in: ZmEditContactView.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
ZmEditContactView(parent, controller)
Creates the edit contact view.
Method Summary
Method Attributes Method Name and Description
 
Cleanup the view.
<static>  
ZmEditContactView.emailValidator(emails)
validate the array of email addresses.
 
Gets the address options.
 
Gets the contact.
 
Gets the controller.
 
Gets the email options.
 
Gets the "file as" options.
 
getFormItemById(id, formItems)
Gets the form item with the given id.
 
Gets the form items.
 
Gets the IM options.
 
Gets the list.
 
Gets the modified attributes.
 
Gets the other options.
 
Gets the phone options.
 
Gets the title.
 
Gets the URL options.
 
isEmpty(items)
Checks if the view is empty.
 
set(contact, isDirty)
Sets the contact.
 
Returns a string representation of the object.
Class Detail
ZmEditContactView(parent, controller)
Creates the edit contact view.
Parameters:
{DwtComposite} parent
the parent
{ZmContactController} controller
the controller
Method Detail
cleanup()
Cleanup the view.

<static> {*} ZmEditContactView.emailValidator(emails)
validate the array of email addresses. (0, 1 or more, each from a row in the edit view)
Parameters:
{Array} emails
Returns:
{*}

{Array} getAddressOptions()
Gets the address options.
Returns:
{Array} an array of address options

{ZmContact} getContact()
Gets the contact.
Returns:
{ZmContact} the contact

{ZmContactController} getController()
Gets the controller.
Returns:
{ZmContactController} the controller

{Object} getEmailOptions()
Gets the email options.
Returns:
{Object} returns null

{Array} getFileAsOptions()
Gets the "file as" options.
Returns:
{Array} an array of "file as" options

{Array} getFormItemById(id, formItems)
Gets the form item with the given id.

Note: This method is especially useful as a way to modify the default set of form items without redeclaring the entire form declaration.

Parameters:
{String} id
[string] Form item identifier.
{Array} formItems Optional
the list of form items. If not specified, the form items array returned by #getFormItems is used.
Returns:
{Array} the form items or null for none

{Hash} getFormItems()
Gets the form items.
Returns:
{Hash} a hash of form items

{Array} getIMOptions()
Gets the IM options.
Returns:
{Array} an array of IM options

{ZmContactList} getList()
Gets the list.
Returns:
{ZmContactList} the list

{Hash} getModifiedAttrs()
Gets the modified attributes.
Returns:
{Hash} a hash of attributes

{Array} getOtherOptions()
Gets the other options.
Returns:
{Array} an array of other options

{Array} getPhoneOptions()
Gets the phone options.
Returns:
{Array} an array of phone options

{String} getTitle()
Gets the title.
Returns:
{String} the title

{Array} getURLOptions()
Gets the URL options.
Returns:
{Array} an array of URL options

{Boolean} isEmpty(items)
Checks if the view is empty.
Parameters:
items
Returns:
{Boolean} true if the view is empty

set(contact, isDirty)
Sets the contact.
Parameters:
{ZmContact} contact
the contact
{Boolean} isDirty
true if the contact is dirty

{String} toString()
Returns a string representation of the object.
Returns:
{String} a string representation of the object

Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:31 GMT-0400 (EDT)