Zimlet JavaScript API Reference - DwtAlert

Class DwtAlert


Extends DwtControl.

This class represents an alert.

Defined in: DwtAlert.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
DwtAlert(parent, className, posStyle)
Constructs a control that alerts the user to important information.
Field Summary
Field Attributes Field Name and Description
<static>  
DwtAlert.CRITICAL
Defines the "critical" style.
<static>  
DwtAlert.INFORMATION
Defines the "information" style.
<static>  
DwtAlert.SUCCESS
Defines the "success" style
<static>  
DwtAlert.WARNING
Defines the "warning" style.
Method Summary
Method Attributes Method Name and Description
 
Gets the icon visibility.
 
Gets the style.
 
Gets the title.
 
setIconVisible(visible)
Sets the icon visibility.
 
setStyle(style)
Sets the style.
 
setTitle(title)
Sets the title.
Methods borrowed from class DwtControl:
addClassName, addControlListener, addDisposeListener, addListener, appendElement, blur, clearContent, clearHandler, condClassName, delClassName, dispose, focus, getBounds, getClassName, getContent, getCursor, getData, getDragBox, getDragSource, getDropTarget, getEnabled, getFocusElement, getH, getHtmlElement, getHTMLElId, getInsetBounds, getInsets, getLocation, getMargins, getOpacity, getOuterSize, getPosition, getScrollContainer, getScrollStyle, getSize, getTabGroupMember, 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, setContent, 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
DwtAlert(parent, className, posStyle)
Constructs a control that alerts the user to important information.
Parameters:
{DwtComposite} parent
the parent container for this control
{string} className Optional, Default: "DwtAlert"
the CSS class for this control
{Dwt.STATIC_STYLE|Dwt.ABSOLUTE_STYLE|Dwt.RELATIVE_STYLE|Dwt.FIXED_STYLE} posStyle Optional
the position style of this control
Field Detail
<static> DwtAlert.CRITICAL
Defines the "critical" style.

<static> DwtAlert.INFORMATION
Defines the "information" style.

<static> DwtAlert.SUCCESS
Defines the "success" style

<static> DwtAlert.WARNING
Defines the "warning" style.
Method Detail
{boolean} getIconVisible()
Gets the icon visibility.
Returns:
{boolean} true if the icon is visible

Gets the style.
Returns:
{DwtAlert.INFORMATION|DwtAlert.WARNING|DwtAlert.CRITICAL|DwtAlert.SUCCESS} the style

{string} getTitle()
Gets the title.
Returns:
{string} the title

setIconVisible(visible)
Sets the icon visibility.
Parameters:
{boolean} visible
if true, the icon is visible

setStyle(style)
Sets the style.
Parameters:
{DwtAlert.INFORMATION|DwtAlert.WARNING|DwtAlert.CRITICAL|DwtAlert.SUCCESS} style
the style

setTitle(title)
Sets the title.
Parameters:
{string} title
the title

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