Class CmsErrorWidget

  • All Implemented Interfaces:,,,,,

    public class CmsErrorWidget
    Helper class for displaying errors.

    • Nested Class Summary

      • Nested classes/interfaces inherited from class,
    • Field Summary

      • Fields inherited from class

    • Constructor Summary

      Constructor Description
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasError()
      Returns true if a error message is set.
      protected void hideError()
      Hides the error.
      protected void setErrorVisible​(boolean visible)
      Sets the visibility of the error label.
      void setText​(java.lang.String text)
      Sets the text for the error message.
      protected void showError()
      Shows the error.
      • Methods inherited from class

        claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
      • Methods inherited from class

        addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
      • Methods inherited from class

        addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, 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
    • Constructor Detail

    • Method Detail

      • hasError

        public boolean hasError()
        Returns true if a error message is set.

        true if a error message is set
      • setText

        public void setText​(java.lang.String text)
        Sets the text for the error message.

        If the text parameter is null, the error message will be hidden.

        text -
      • hideError

        protected void hideError()
        Hides the error.

      • setErrorVisible

        protected void setErrorVisible​(boolean visible)
        Sets the visibility of the error label.

        visible - true if the error should be visible
      • showError

        protected void showError()
        Shows the error.