Class ZmAppCtxt
Method Detail
addAttachmentDialogCallback(callback)
Adds the callback to the attachment dialog callbacks.
{Boolean}
addAuthTokenWarningListener(listener, index)
Adds a listener to the auth token warning event. This listener is fired once
per minute when less than five minutes remain before token expiry.
{Boolean}
addZimletsLoadedListener(listener, index)
Adds a listener to the zimlets loaded event.
{Boolean}
allZimletsLoaded()
Checks is all zimlets are loaded.
{Boolean}
areZimletsLoaded()
Checks if zimlets are loaded.
checkPrecondition(precondition, listAny)
Checks a precondition which may be in one of several forms: a boolean, a settings constant, a function, or a list.
clearAutocompleteCache(type, account)
Clears the autocomplete cache.
dismissStatusMsg(all)
Dismisses the displayed status message, if any
{Object}
get(id, key, account)
Gets the value of the given setting.
{ZmAcceptShareDialog}
getAcceptShareDialog()
Gets the accept share dialog.
{ZmTag}
getAccountTagList(item)
Gets the tag organizer tree's root.
{ZmAccessControlList}
getACL(account, callback)
Gets the ACL.
{ZmZimbraAccount}
getActiveAccount()
Gets the active account.
{ZmActivityStreamPromptDialog}
getActivityStreamFilterDialog()
Gets the activity stream prompt dialog for running activity stream filters
{ZmActivityToInboxPromptDialog}
getActivityToInboxFilterDialog()
Gets the prompt for moving files from the Activity Stream to the Inbox
{ZmApp}
getApp(appName)
Gets the application.
{ZmAppChooser}
getAppChooser()
Gets the application chooser.
{ZmController}
getAppController()
Gets the application controller.
{ZmAppViewMgr}
getAppViewMgr()
Gets the application view manager.
{ZmAttachDialog}
getAttachDialog()
Gets the attach dialog.
getAutocompleteCache(acType, str, account, create)
Gets the autocomplete cache for the given parameters, optionally creating one.
{ZmAutocomplete}
getAutocompleter()
Gets the auto completer.
{ZmCalMgr}
getCalManager()
Gets the calendar manager.
{DwtMessageDialog}
getCancelMsgDialog()
Gets the cancel message dialog.
getChangePasswordWindow(ev)
Opens a new change password window
getCharset()
{ZmChooseFolderDialog}
getChooseFolderDialog(appName)
Gets the choose folder dialog.
{ZmClientCmdHandler}
getClientCmdHandler(clientCmdHdlr)
Gets the client command handler.
{AjxClipboard}
getClipboard()
Returns the singleton AjxClipboard instance, if it is supported.
{DwtConfirmDialog}
getConfirmationDialog(id)
Gets the confirm dialog.
{ZmContactQuickAddDialog}
getContactQuickAddDialog()
Gets the quickadd dialog for creating a contact
{ZmApp}
getCurrentApp()
Gets the current application.
{String}
getCurrentAppName()
Gets the name of the current application.
{ZmController}
getCurrentController()
Gets the current controller.
{ZmList}
getCurrentList()
Gets the current list.
{ZmSearch}
getCurrentSearch()
Gets the current search.
{DwtComposite}
getCurrentView()
Gets the current view.
{String}
getCurrentViewId()
Gets the current view id. If we're showing search results, returns the ID of the
view within the search results (rather than the ID of the search results).
{String}
getCurrentViewType()
Gets the current view type. If we're showing search results, returns the type of the
view within the search results (rather than the type of the search results).
{ZmModel}
getDataSourceCollection(account)
Gets the data source collection.
{ZmDebugLogDialog}
getDebugLogDialog()
Gets the debug log dialog.
{ZmDeclineShareDialog}
getDeclineShareDialog()
Gets the decline share dialog.
{DwtDialog}
getDialog()
Gets the dialog.
{ZmErrorDialog}
getErrorDialog()
Gets the error dialog.
{ZmFilterRuleDialog}
getFilterRuleDialog()
Gets the filter rule add/edit dialog.
{ZmFolderNotifyDialog}
getFolderNotifyDialog()
Gets the folder notify dialog.
{ZmFolderPropsDialog}
getFolderPropsDialog()
Gets the folder properties dialog.
{ZmFolderTree}
getFolderTree(account)
Gets the folder organizer tree.
{DwtMessageDialog}
getHelpMsgDialog()
Gets the message dialog with a help button.
{AjxHistoryMgr}
getHistoryMgr()
Gets the history manager.
{ZmIdentityCollection}
getIdentityCollection(account)
Gets the identity collection.
{ZmImportExportController}
getImportExportController()
Gets the import/export controller.
{DwtKeyboardMgr}
getKeyboardMgr()
Gets the keyboard manager
getLoggedInUsername()
{ZmMailRedirectDialog}
getMailRedirectDialog()
Gets the mail redirect dialog.
{DwtMessageDialog}
getMsgDialog()
Gets the message dialog.
{ZmNewAddrBookDialog}
getNewAddrBookDialog()
Gets the new address book dialog.
{ZmNewBriefcaseDialog}
getNewBriefcaseDialog()
Gets the new briefcase dialog.
{ZmNewCalendarDialog}
getNewCalendarDialog()
Gets the new calendar dialog.
{ZmNewContactGroupDialog}
getNewContactGroupDialog()
Gets the new contact group dialog.
{ZmNewFolderDialog}
getNewFolderDialog()
Gets the new folder dialog.
{ZmNewSearchDialog}
getNewSearchDialog()
Gets the new search dialog.
{ZmNewTagDialog}
getNewTagDialog()
Gets the new tag dialog.
{ZmNewTaskFolderDialog}
getNewTaskFolderDialog()
Gets the new task folder dialog.
getNewWindow(fullView, width, height, name)
Gets a new window.
{ZmOfflineSettingsDialog}
getOfflineSettingsDialog()
Gets the offline settings dialog.
{DwtMessageDialog}
getOkCancelMsgDialog()
Gets the ok/cancel message dialog.
{ZmOverviewController}
getOverviewController(dontCreate)
Gets the overview controller. Creates a new one if not already set, unless dontCreate is true.
{String}
getOverviewId(parts, account)
Gets the overview ID, prepending account name if multi-account.
{ZmPasswordUpdateDialog}
getPasswordChangeDialog()
Gets the password update dialog.
{ZmPickTagDialog}
getPickTagDialog()
Gets the pick tag dialog.
{ZmPriorityMessageFilterDialog}
getPriorityMessageFilterDialog()
Gets the priority message filter dialog.
{ZmRenameFolderDialog}
getRenameFolderDialog()
Gets the rename folder dialog.
{ZmRenameTagDialog}
getRenameTagDialog()
Gets the rename tag dialog.
{ZmFindnReplaceDialog}
getReplaceDialog()
Gets the find-and-replace dialog.
{ZmRequestMgr}
getRequestMgr()
Gets the request manager.
{ZmRetetionWarningDialog}
getRetentionWarningDialog()
Gets the mail retention warning dialog.
{ZmRevokeShareDialog}
getRevokeShareDialog()
Gets the revoke share dialog.
{DwtTabGroup}
getRootTabGroup()
Gets the root tab group.
{ZmSearchController}
getSearchController()
Gets the search bar controller.
{ZmSettings}
getSettings(account)
Gets the settings for the given account.
{ZmSharePropsDialog}
getSharePropsDialog()
Gets the share properties dialog.
{DwtShell}
getShell()
Gets the shell.
{String}
getShortcutHint(keyMap, shortcut)
Gets the shortcut hint.
{ZmShortcutsPanel}
getShortcutsPanel()
Gets the shortcuts panel.
{ZmSignatureCollection}
getSignatureCollection(account)
Gets the signature collection.
{String}
getSkinHint()
Gets the skin hint for the given argument(s), which will be used to look
successively down the properties chain.
For example,
{ZmTimeSuggestionPrefDialog}
getSuggestionPreferenceDialog()
Gets the new suggestion Preferences dialog
{ZmTagTree}
getTagTree(account)
Gets the tag organizer tree.
{ZmTaskMgr}
getTaskManager()
Gets the task manager.
{ZmTimezonePicker}
getTimezonePickerDialog()
Gets the timezone picker dialog.
{ZmTree}
getTree(type, account)
Gets the organizer tree.
{ZmUploadConflictDialog}
getUploadConflictDialog()
Gets the upload conflict dialog.
{ZmUploadDialog}
getUploadDialog()
Gets the upload dialog.
{String}
getUploadFrameId()
Gets the upload frame id.
{Object}
getUploadManager()
Gets the upload manager.
{String}
getUserDomain(account)
Gets the user domain.
{String}
getUsername(account)
Gets the username (which is an email address).
{String}
getViewTypeFromId(viewId)
Extracts the view type from a view ID.
{DwtMessageDialog}
getYesNoCancelMsgDialog()
Gets the yes/no/cancel message dialog.
{DwtMessageDialog}
getYesNoMsgDialog(id)
Gets the yes/no message dialog.
{ZmZimletMgr}
getZimletMgr()
Gets the zimlet manager
{ZmFolderTree}
getZimletTree(account)
Gets the zimlet organizer tree.
handlePopupBlocker(win)
Handle Popup bloker for a given window
<static>
{Object}
ZmAppCtxt.handleWindowOpener()
When using pre-auth window.opener.appCtxt may not be accessible. This function
handles appCtxt assignment to avoid a permission denied error
isExpandableDL(addr)
Returns true if an address is an expandable DL.
{ZmZimbraAccount}
isExternalAccount()
Gets the active account.
{Boolean}
isMyAddress(addr, allowLocal, excludeAllowFromAddress)
Checks if my address belongs to the current user (include aliases).
{Boolean}
isRemoteId(id)
Returns true if the given ID is not local. That's the case if the ID has
an account part that is not the active account.
{Boolean}
isSpellCheckerAvailable()
Gets the availability of the spell check feature based on the current locale and user's configuration
isZDOnline()
Returns true if Prism and the user is online
{Boolean}
notifyZimlets(event, args, options)
Notifies zimlets if they are present and loaded.
{Boolean}
removeAuthTokenWarningListener(listener)
Removes a listener for the auth token warning event.
set(id, value, key, setDefault, skipNotify, account, skipImplicit)
Sets the value of the given setting.
setAppController(appController)
Sets the application controller.
setCurrentList(list)
Sets the current list.
setIsExpandableDL(addr, isExpandableDL)
Cache whether an address is an expandable DL.
setRequestMgr(requestMgr)
Sets the request manager.
setSettings(settings, account)
Sets the settings for the given account.
setShell(the)
Sets the shell.
setStatusMsg(params)
Sets the status message to display.
setTree(type, tree, account)
Sets the organizer tree.
setZimletsPresent(zimletsPresent)
Sets if the zimlets are present.
showError(errMsg, details, style, title)
Displays an error message in dialog.
{String}
toString()
Returns a string representation of the application context.
{Boolean}
zimletsPresent()
Checks if the zimlets are present.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:34 GMT-0400 (EDT)
|