Class UiResult


  • public class UiResult
    extends Object
    Default result for UiActions with no JavaScript.
    • Field Detail

      • alert

        protected String alert
        Alert the user with a message.
      • url

        protected String url
        If present redirect browser to this URL.
      • openWindow

        protected Boolean openWindow
        When true open url in a new tab/window.
    • Method Detail

      • alert

        public static UiResult alert​(String message)
        Display an alert message to the user.
      • openUrl

        public static UiResult openUrl​(URI uri)
        Launch URL in a new window.
      • openUrl

        public static UiResult openUrl​(String url)
        Launch URL in a new window.
      • redirectUrl

        public static UiResult redirectUrl​(String url)
        Redirect the browser to a new URL.