Class Index | File Index

Classes


Class com.gContactSync.CardDialogOverlay


Defined in: CardDialogOverlay.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Adds a tab to the tab box in the New and Edit Card Dialogs.
Field Summary
Field Attributes Field Name and Description
<static>  
com.gContactSync.CardDialogOverlay.mDisabled
This stores whether the contact is read-only (ie from LDAP or the Mac AB)
<static>  
com.gContactSync.CardDialogOverlay.mLoadNumber
The number of times an attempt was made to initialize the dialog
<static>  
com.gContactSync.CardDialogOverlay.mNamespace
The XUL namespace
Method Summary
Method Attributes Method Name and Description
<static>  
com.gContactSync.CardDialogOverlay.addMenuItems(aBox, aArray, aID, aValue, aWidth)
Sets up a type menu list element with a menuitem for each string in the array.
<static>  
com.gContactSync.CardDialogOverlay.addPostboxEmailType(aElem)
Adds the e-mail type menulist to Postbox's emailaddress-input element.
<static>  
com.gContactSync.CardDialogOverlay.CheckAndSetCardValues(aCard, aDoc, aCheck)
Sets the attributes added by this extension as the value in the textbox or drop down menu in aDoc whose ID is identical to the attribute's name.
<static>  
com.gContactSync.CardDialogOverlay.getBox(aID)
Gets the parent node of an element with the given ID.
<static>  
com.gContactSync.CardDialogOverlay.GetCardValues(aCard, aDoc)
A method that gets all of the attributes added by this extension and sets the value of the textbox or drop down menu in aDoc whose ID is identical to the attribute's name.
<static>  
com.gContactSync.CardDialogOverlay.init()
Adds a tab to the tab box, if possible.
<static>  
com.gContactSync.CardDialogOverlay.setupNumBox(aID, aLabel)
Adds an hbox containing a label and textbox for a phone number.
Class Detail
com.gContactSync.CardDialogOverlay()
Adds a tab to the tab box in the New and Edit Card Dialogs. Using JavaScript is necessary because the tab box doesn't have an ID.
Field Detail
<static> com.gContactSync.CardDialogOverlay.mDisabled
This stores whether the contact is read-only (ie from LDAP or the Mac AB)

<static> com.gContactSync.CardDialogOverlay.mLoadNumber
The number of times an attempt was made to initialize the dialog

<static> com.gContactSync.CardDialogOverlay.mNamespace
The XUL namespace
Method Detail
<static> {XULElement} com.gContactSync.CardDialogOverlay.addMenuItems(aBox, aArray, aID, aValue, aWidth)
Sets up a type menu list element with a menuitem for each string in the array.
Parameters:
aBox
{XUL Box} The box element to which this menu list is added.
aArray
{array} The array of values to set for the menuitems. There must be a string in the string bundle with the same name as the value.
aID
{string} The ID for this menu list, which should be the name of the attribute with Type added to the end, such as WorkNumberType
aValue
{string} The default value to set for this list.
aWidth
{int} The maximum width, if any.
Returns:
{XULElement} The menulist element.

<static> {boolean} com.gContactSync.CardDialogOverlay.addPostboxEmailType(aElem)
Adds the e-mail type menulist to Postbox's emailaddress-input element. This also overrides the addRow method to add the type menulist to future emailaddress-input elements (and calls the original addRow)
Parameters:
aElem
The emailaddress-input element.
Returns:
{boolean} True if the application is Postbox and the menulist was added.

<static> com.gContactSync.CardDialogOverlay.CheckAndSetCardValues(aCard, aDoc, aCheck)
Sets the attributes added by this extension as the value in the textbox or drop down menu in aDoc whose ID is identical to the attribute's name. Calls the original CheckAndSetCardValues function when finished.
Parameters:
aCard
{nsIAbCard} The card to set the values for.
aDoc
{Document Object} The document.
aCheck
Unused, but passed to the original method.

<static> {XULElement} com.gContactSync.CardDialogOverlay.getBox(aID)
Gets the parent node of an element with the given ID. If there is no element with the given ID then this function will return null.
Parameters:
aID
The ID of the element whose parent node is returned.
Returns:
{XULElement} The parentNode of the element with the given ID.

<static> com.gContactSync.CardDialogOverlay.GetCardValues(aCard, aDoc)
A method that gets all of the attributes added by this extension and sets the value of the textbox or drop down menu in aDoc whose ID is identical to the attribute's name.
Parameters:
aCard
{nsIAbCard} The card to get the values from.
aDoc
{Document Object} The document.

<static> com.gContactSync.CardDialogOverlay.init()
Adds a tab to the tab box, if possible. Waits until the abCardOverlay is loaded.

<static> com.gContactSync.CardDialogOverlay.setupNumBox(aID, aLabel)
Adds an hbox containing a label and textbox for a phone number.
Parameters:
aID
{string} The ID for the textbox.
aLabel
{string} The text for the textbox's label.

Documentation generated by JsDoc Toolkit 2.1.0 on Fri May 06 2011 09:24:18 GMT-0400 (EDT)