Class MessageOptionDialogFrame

    • Constructor Detail

      • MessageOptionDialogFrame

        public MessageOptionDialogFrame​(Notification.Option... options)
        Options constructor with no message. Duplicate options are ignored.
        Parameters:
        options - The available options.
        Throws:
        java.lang.NullPointerException - if the given options is null.
      • MessageOptionDialogFrame

        public MessageOptionDialogFrame​(java.lang.String message,
                                        Notification.Option... options)
        Message, and options constructor. Duplicate options are ignored.
        Parameters:
        message - The message to display in the frame, or null if no message should be displayed.
        options - The available options.
        Throws:
        java.lang.NullPointerException - if the given options is null.
      • MessageOptionDialogFrame

        public MessageOptionDialogFrame​(Message messageComponent,
                                        Notification.Option... options)
        Message component and options constructor. Duplicate options are ignored.
        Parameters:
        messageComponent - The message component to display in the frame.
        options - The available options.
        Throws:
        java.lang.NullPointerException - if the given message component, and/or options is null.
    • Method Detail

      • getMessage

        public Message getMessage()
        Returns:
        The message displayed in the frame.
      • createMessage

        protected static Message createMessage​(java.lang.String messageText)
        Creates a message component with a message.
        Parameters:
        messageText - The text of the message component.
        Returns:
        A new message component with the given message text.