Zimlet JavaScript API Reference - ZmErrorDialog

Class ZmErrorDialog


Extends DwtMessageDialog.

Creates an error dialog which will have a "Send Error Report" button. A normal DwtMessageDialog with a "Send Error Report" button that will post user info to the server when clicked.

Defined in: ZmErrorDialog.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
ZmErrorDialog(parent, msgs)
Creates an error dialog.
Method Summary
Method Attributes Method Name and Description
 
Pops-down the dialog.
 
popup(loc, hideReportButton)
Pops-up the error dialog.
 
Resets the dialog.
 
Sets the text to display when the "Show Details" button is pressed.
 
setMessage(msgStr, detailStr, style, title)
Sets the message style (info/warning/critical) and content.
 
Displays the detail text
 
Returns a string representation of the object.
Methods borrowed from class DwtMessageDialog:
setHelpURL
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, removePopdownListener, removePopupListener, 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
ZmErrorDialog(parent, msgs)
Creates an error dialog.
Parameters:
{Object} parent
the parent
{Hash} msgs
a hash of messages
{String} msgs.showDetails
the show details message
{String} msgs.hideDetails
the hide details message
Method Detail
popdown()
Pops-down the dialog.

popup(loc, hideReportButton)
Pops-up the error dialog.
Parameters:
{Object} loc
the desired location
{Boolean} hideReportButton
if true, do not show "Send Error Report" button

reset()
Resets the dialog.

setDetailString(text)
Sets the text to display when the "Show Details" button is pressed.
Parameters:
{String} text
the detail text

setMessage(msgStr, detailStr, style, title)
Sets the message style (info/warning/critical) and content.
Parameters:
{String} msgStr
the message text
{String} detailStr
the detail text
{constant} style
the style (see DwtMessageDialog _STYLE constants)
{String} title
the dialog box title

showDetail()
Displays the detail text

{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:30 GMT-0400 (EDT)