Class DialogBase


  • public final class DialogBase
    extends Object
    Represents the title and other options common to all dialogs.
    • Constructor Detail

      • DialogBase

        public DialogBase​(BaseComponent title,
                          BaseComponent externalTitle,
                          List<DialogBody> body,
                          boolean canCloseWithEscape)
        Creates a new DialogBase instance.
        Parameters:
        title - The mandatory dialog title.
        externalTitle - The name which is used for any buttons leading to this dialog (eg from a DialogListDialog). Otherwise defaults to title.
        body - The body elements which make up this dialog.
        canCloseWithEscape - Whether this dialog can be closed with the escape key (default: true).
      • DialogBase

        public DialogBase​(BaseComponent title)
        Creates a new DialogBase instance.
        Parameters:
        title - The mandatory dialog title.
    • Method Detail

      • title

        public BaseComponent title()
        The mandatory dialog title.
      • externalTitle

        public BaseComponent externalTitle()
        The name which is used for any buttons leading to this dialog (eg from a DialogListDialog). Otherwise defaults to title.
      • body

        public List<DialogBody> body()
        The body elements which make up this dialog.
      • canCloseWithEscape

        public boolean canCloseWithEscape()
        Whether this dialog can be closed with the escape key (default: true).
      • canCloseWithEscape

        public DialogBase canCloseWithEscape​(boolean canCloseWithEscape)
        Whether this dialog can be closed with the escape key (default: true).
        Returns:
        this.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object