Interface ErrorPopupSupported

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getError()
      Gets the error message.
      void hideErrorPopup()
      Hides the error popup if shown.
      boolean isErrorTemporary()
      Returns whether this is a temporary error.
      Temporary errors are set by the value translators typically if some parsing failed.
      void setError​(java.lang.String error)
      Sets the error message.
      Notice that an empty string will set the style but dows not show any popup.
      void setErrorTemporary​(boolean errorTemporary)
      Sets the temporary error flag.
      void showErrorPopup()
      Shows the error popup.
      Requires the error message set.
    • Method Detail

      • getError

        java.lang.String getError()
        Gets the error message.
        Returns:
        the message, null if no error
      • setError

        void setError​(java.lang.String error)
        Sets the error message.
        Notice that an empty string will set the style but dows not show any popup.
        Parameters:
        error - the error message, null to clear
      • isErrorTemporary

        boolean isErrorTemporary()
        Returns whether this is a temporary error.
        Temporary errors are set by the value translators typically if some parsing failed. Non-temporary are set by the application, for example when a persistence validation failed.
        Returns:
        true if temporary error
      • setErrorTemporary

        void setErrorTemporary​(boolean errorTemporary)
        Sets the temporary error flag.
        Parameters:
        errorTemporary - true if this is a temporary error
      • showErrorPopup

        void showErrorPopup()
        Shows the error popup.
        Requires the error message set.
      • hideErrorPopup

        void hideErrorPopup()
        Hides the error popup if shown.