Zimlet JavaScript API Reference - ZmPromptDialog

Class ZmPromptDialog


Extends ZmDialog.

This class represents a prompt dialog.

Defined in: ZmPromptDialog.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates a prompt dialog.
Method Summary
Method Attributes Method Name and Description
<static>  
ZmPromptDialog.getInstance()
Gets an instance of the prompt dialog.
<static>  
ZmPromptDialog.getPasswordInstance()
Gets an instance of the prompt dialog.
 
popup(params)
Pops-up the dialog.
Methods borrowed from class ZmDialog:
setView
Methods borrowed from class DwtDialog:
associateEnterWithButton, getButton, getButtonEnabled, registerCallback, resetButtonStates, setButtonEnabled, setButtonListener, setButtonVisible, setEnterListener, unregisterCallback
Methods borrowed from class DwtBaseDialog:
addEnterListener, addPopdownListener, addPopupListener, cleanup, isPoppedUp, popdown, removePopdownListener, removePopupListener, reset, setContent, setTitle
Methods borrowed from class DwtComposite:
addChild, cleanupSeparators, clear, dispose, getChild, getChildren, getNumChildren, getTabGroupMember, removeChild, removeChildren
Methods borrowed from class DwtControl:
addClassName, addControlListener, addDisposeListener, addListener, appendElement, blur, clearContent, clearHandler, condClassName, delClassName, focus, getBounds, getClassName, getContent, getCursor, getData, getDragBox, getDragSource, getDropTarget, getEnabled, getFocusElement, getH, getHtmlElement, getHTMLElId, getInsetBounds, getInsets, getLocation, getMargins, getOpacity, getOuterSize, getPosition, getScrollContainer, getScrollStyle, getSize, getTooltipBase, getToolTipContent, getVisibility, getVisible, getW, getX, getXW, getY, getYH, getZIndex, hasFocus, isAlertShown, isDisposed, isInitialized, isListenerRegistered, notifyListeners, preventContextMenu, preventSelection, removeAllListeners, removeControlListener, removeDisposeListener, removeListener, reparent, reparentHtmlElement, replaceElement, setBounds, setClassName, setCursor, setData, setDisplay, setDisplayState, setDragBox, setDragSource, setDropTarget, setEnabled, setEventPropagation, setFocusElement, setHandler, setHtmlElementId, setLocation, setOpacity, setPosition, setScrollStyle, setSize, setToolTipContent, setVisibility, setVisible, setZIndex, showAlert, zShow
Class Detail
ZmPromptDialog(args)
Creates a prompt dialog.
Parameters:
{Hash} args
a hash of arguments
{Array} args.buttons
an array of buttons (default is [DwtDialog.OK_BUTTON, DwtDialog.CANCEL_BUTTON])
{String} args.password
the password
See:
ZmPromptDialog.getInstance
ZmPromptDialog.getPasswordInstance
Method Detail
<static> {ZmPromptDialog} ZmPromptDialog.getInstance()
Gets an instance of the prompt dialog.
Returns:
{ZmPromptDialog} the dialog

<static> {ZmPromptDialog} ZmPromptDialog.getPasswordInstance()
Gets an instance of the prompt dialog.
Returns:
{ZmPromptDialog} the dialog

popup(params)
Pops-up the dialog.
Parameters:
{Hash} params
a hash of parameters
{String} params.title
the dialog box title
{String} params.label
the label next to the dialog's input field
{String} params.value
the initial value of input field
{AjxCallback} params.callback
the callback to run when ok button is pressed

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