Class AbstractDialogBuilder<B,​T extends DialogWindow>

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractDialogBuilder​(java.lang.String title)
      Default constructor for a dialog builder
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      T build()
      Builds a new dialog following the specifications of this builder
      protected abstract T buildDialog()
      Builds the dialog according to the builder implementation
      java.lang.String getDescription()
      Returns the description that the built dialog will have
      java.util.Set<Window.Hint> getExtraWindowHints()
      Returns the list of extra window hints that will be assigned to the window when built
      java.lang.String getTitle()
      Returns the title that the built dialog will have
      protected abstract B self()
      Helper method for casting this to type parameter B
      B setDescription​(java.lang.String description)
      Changes the description of the dialog
      B setExtraWindowHints​(java.util.Set<Window.Hint> extraWindowHints)
      Assigns a set of extra window hints that you want the built dialog to have
      B setTitle​(java.lang.String title)
      Changes the title of the dialog
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • title

        protected java.lang.String title
      • description

        protected java.lang.String description
      • extraWindowHints

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

      • AbstractDialogBuilder

        public AbstractDialogBuilder​(java.lang.String title)
        Default constructor for a dialog builder
        Parameters:
        title - Title to assign to the dialog
    • Method Detail

      • setTitle

        public B setTitle​(java.lang.String title)
        Changes the title of the dialog
        Parameters:
        title - New title
        Returns:
        Itself
      • getTitle

        public java.lang.String getTitle()
        Returns the title that the built dialog will have
        Returns:
        Title that the built dialog will have
      • setDescription

        public B setDescription​(java.lang.String description)
        Changes the description of the dialog
        Parameters:
        description - New description
        Returns:
        Itself
      • getDescription

        public java.lang.String getDescription()
        Returns the description that the built dialog will have
        Returns:
        Description that the built dialog will have
      • setExtraWindowHints

        public B setExtraWindowHints​(java.util.Set<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
      • getExtraWindowHints

        public java.util.Set<Window.Hint> getExtraWindowHints()
        Returns the list of extra window hints that will be assigned to the window when built
        Returns:
        List of extra window hints that will be assigned to the window when built
      • self

        protected abstract B self()
        Helper method for casting this to type parameter B
        Returns:
        this as B
      • buildDialog

        protected abstract T buildDialog()
        Builds the dialog according to the builder implementation
        Returns:
        New dialog object
      • build

        public final T build()
        Builds a new dialog following the specifications of this builder
        Returns:
        New dialog built following the specifications of this builder