Class CmsMessageWidget

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsWidget

    public class CmsMessageWidget
    extends com.google.gwt.user.client.ui.Widget
    Displays a message text with an icon in front. Default is the 'warning' icon.

    Since:
    8.0.1
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

        com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.google.gwt.dom.client.Element m_iconCell
      The element displaying the icon.
      protected com.google.gwt.dom.client.Element m_message
      The element holding the message.
      • Fields inherited from class com.google.gwt.user.client.ui.UIObject

        DEBUG_ID_PREFIX
    • Constructor Summary

      Constructors 
      Constructor Description
      CmsMessageWidget()
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setIcon​(FontOpenCms icon, java.lang.String color)
      Sets the icon CSS class.
      void setMessageHtml​(java.lang.String message)
      Sets the message HTML.
      void setMessageText​(java.lang.String message)
      Sets the message text.
      • Methods inherited from class com.google.gwt.user.client.ui.Widget

        addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
      • Methods inherited from class com.google.gwt.user.client.ui.UIObject

        addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • m_iconCell

        @UiField
        protected com.google.gwt.dom.client.Element m_iconCell
        The element displaying the icon.
      • m_message

        @UiField
        protected com.google.gwt.dom.client.Element m_message
        The element holding the message.
    • Method Detail

      • setIcon

        public void setIcon​(FontOpenCms icon,
                            java.lang.String color)
        Sets the icon CSS class.

        Parameters:
        icon - the icon
        color - the icon color
      • setMessageHtml

        public void setMessageHtml​(java.lang.String message)
        Sets the message HTML.

        Parameters:
        message - the message HTML
      • setMessageText

        public void setMessageText​(java.lang.String message)
        Sets the message text.

        Parameters:
        message - the message text