Interface IValidationMessage

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethodDescription
      voidonValidate​(boolean isValid)
      Call to inform validity of all validators.
      voidsetMessage​(java.lang.String newMessage, int newType)
      Set the message for this page with an indication of what type of message it is.
    • Method Detail

      • setMessage

        void setMessage​(java.lang.String newMessage,
                        int newType)
        Set the message for this page with an indication of what type of message it is.

        The valid message types are one of IMessageProvider.NONE, IMessageProvider.INFORMATION,IMessageProvider.WARNING, or IMessageProvider.ERROR.

        Note that for backward compatibility, a message of type ERROR is different than an error message (set using setErrorMessage). An error message overrides the current message until the error message is cleared. This method replaces the current message and does not affect the error message.

        Parameters:
        newMessage - The message, or null to clear the message.
        newType - The message type.
      • onValidate

        void onValidate​(boolean isValid)
        Call to inform validity of all validators.
        Parameters:
        isValid - true if valid, false otherwise.