Class CmsAlertDialog

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.EventPreview, com.google.gwt.user.client.ui.AcceptsOneWidget, com.google.gwt.user.client.ui.HasAnimation, com.google.gwt.user.client.ui.HasOneWidget, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.SourcesPopupEvents, java.lang.Iterable<com.google.gwt.user.client.ui.Widget>, I_CmsAutoHider, I_CmsTruncable
    Direct Known Subclasses:
    CmsAcceptDeclineCancelDialog, CmsConfirmDialog

    public class CmsAlertDialog
    extends CmsPopup
    implements I_CmsTruncable
    Provides an alert dialog with a button.

    Since:
    8.0.0
    • Constructor Detail

      • CmsAlertDialog

        public CmsAlertDialog​(java.lang.String title,
                              java.lang.String content)
        Constructor.

        Parameters:
        title - the title and heading of the dialog
        content - the content text
      • CmsAlertDialog

        public CmsAlertDialog​(java.lang.String title,
                              java.lang.String content,
                              java.lang.String buttonText)
        Constructor.

        Parameters:
        title - the title and heading of the dialog
        content - the content text
        buttonText - the button text
      • CmsAlertDialog

        public CmsAlertDialog​(java.lang.String title,
                              java.lang.String content,
                              java.lang.String buttonText,
                              java.lang.String buttonIconClass)
        Constructor.

        Parameters:
        title - the title and heading of the dialog
        content - the content text
        buttonText - the button text
        buttonIconClass - the button icon class
    • Method Detail

      • addBottomWidget

        public void addBottomWidget​(com.google.gwt.user.client.ui.Widget w)
        Adds a widget to this dialogs bottom content.

        Parameters:
        w - the widget to add
      • addTopWidget

        public void addTopWidget​(com.google.gwt.user.client.ui.Widget w)
        Adds a widget to this dialogs top content.

        Parameters:
        w - the widget to add
      • setCloseIconClass

        public void setCloseIconClass​(java.lang.String iconClass)
        Sets the cancel/close button icon class.

        Parameters:
        iconClass - the icon class
      • setCloseText

        public void setCloseText​(java.lang.String text)
        Sets the close button text.

        Parameters:
        text - the button text
      • setWarningMessage

        public void setWarningMessage​(java.lang.String warningText)
        Sets the warning text (HTML possible).

        Parameters:
        warningText - the warning text to set
      • getTopWidgets

        protected com.google.gwt.user.client.ui.FlowPanel getTopWidgets()
        Returns the top widgets panel.

        Returns:
        the top widgets panel
      • onClose

        protected void onClose()
        Executed on 'close' click.

      • onShow

        protected void onShow()
        Executed when the dialog is shown.