Zimlet JavaScript API Reference - DwtConfirmDialog

Class DwtConfirmDialog


Extends DwtDialog.

This class represents a confirmation dialog.

Defined in: DwtConfirmDialog.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
DwtConfirmDialog(parent, className, id, buttons, extraButtons)
Creates a confirmation dialog.
Method Summary
Method Attributes Method Name and Description
 
popup(questionHtml, yesCallback, noCallback, cancelCallback, loc)
Pops up the confirmation dialog.
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, setView
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
DwtConfirmDialog(parent, className, id, buttons, extraButtons)
Creates a confirmation dialog.
Parameters:
{DwtComposite} parent
the parent widget (the shell)
{string} className
the CSS class
id
buttons
extraButtons
Method Detail
popup(questionHtml, yesCallback, noCallback, cancelCallback, loc)
Pops up the confirmation dialog. The caller passes in the confirmation question and callbacks for the Yes, No, and Cancel buttons.

Note: If the callback for the No button is not specified, the confirmation dialog assumes that the caller is only concerned with a Yes response and hides the (presumably) extraneous Cancel button.

Parameters:
{string} questionHtml
the question HTML
{AjxCallback} yesCallback
the "yes" button callback
{AjxCallback} noCallback
the "no" button callback
{AjxCallback} cancelCallback
the "cancel" button callback
{DwtPoint} loc
the location

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