Class Alert

    • Constructor Detail

      • Alert

        public Alert()
      • Alert

        public Alert​(java.lang.String message)
      • Alert

        public Alert​(MessageType messageType,
                     java.lang.String message,
                     Sequence<?> options)
      • Alert

        public Alert​(MessageType messageType,
                     java.lang.String message,
                     Sequence<?> options,
                     boolean modal)
    • Method Detail

      • setMessageType

        public void setMessageType​(MessageType messageType)
      • getMessage

        public java.lang.String getMessage()
      • setMessage

        public void setMessage​(java.lang.String message)
      • setBody

        public void setBody​(Component body)
      • setOptions

        public void setOptions​(Sequence<?> options)
      • setOptions

        public void setOptions​(java.lang.String options)
      • getSelectedOptionIndex

        public int getSelectedOptionIndex()
      • setSelectedOptionIndex

        public void setSelectedOptionIndex​(int selectedOption)
      • getSelectedOption

        public java.lang.Object getSelectedOption()
      • setSelectedOption

        public void setSelectedOption​(java.lang.Object selectedOption)
      • alert

        public static void alert​(java.lang.String message,
                                 Window owner)
      • alert

        public static void alert​(java.lang.String message,
                                 Window owner,
                                 int width)
        An alert with a type of MessageType.INFO.
        Parameters:
        message - The main message of this alert.
        owner - The owner window.
        width - The preferred width of the alert.
      • error

        public static void error​(java.lang.String message,
                                 Window owner)
      • error

        public static void error​(java.lang.String message,
                                 Window owner,
                                 int width)
        An alert with a type of MessageType.ERROR.
        Parameters:
        message - The main message of this error.
        owner - The owner window.
        width - The preferred width of the alert.
      • alert

        public static void alert​(MessageType messageType,
                                 java.lang.String message,
                                 Window owner)
      • alert

        public static void alert​(MessageType messageType,
                                 java.lang.String message,
                                 java.lang.String title,
                                 Window owner)
      • alert

        public static void alert​(MessageType messageType,
                                 java.lang.String message,
                                 Component body,
                                 Window owner,
                                 int width)