Class MessageDialogBuilder


  • public class MessageDialogBuilder
    extends java.lang.Object
    Dialog builder for the MessageDialog class, use this to create instances of that class and to customize them
    • Field Detail

      • title

        private java.lang.String title
      • text

        private java.lang.String text
      • extraWindowHints

        private final java.util.Set<Window.Hint> extraWindowHints
    • Constructor Detail

      • MessageDialogBuilder

        public MessageDialogBuilder()
        Default constructor
    • Method Detail

      • build

        public MessageDialog build()
        Builds a new MessageDialog from the properties in the builder
        Returns:
        Newly build MessageDialog
      • setTitle

        public MessageDialogBuilder setTitle​(java.lang.String title)
        Sets the title of the MessageDialog
        Parameters:
        title - New title of the message dialog
        Returns:
        Itself
      • setText

        public MessageDialogBuilder setText​(java.lang.String text)
        Sets the main text of the MessageDialog
        Parameters:
        text - Main text of the MessageDialog
        Returns:
        Itself
      • setExtraWindowHints

        public MessageDialogBuilder setExtraWindowHints​(java.util.Collection<Window.Hint> extraWindowHints)
        Assigns a set of extra window hints that you want the built dialog to have
        Parameters:
        extraWindowHints - Window hints to assign to the window in addition to the ones the builder will put
        Returns:
        Itself