Class Dialogs.Builder

java.lang.Object
qupath.lib.gui.dialogs.Dialogs.Builder
Enclosing class:
Dialogs

@Deprecated public static class Dialogs.Builder extends Object
Deprecated.
Builder class to create a custom Dialog.
  • Constructor Details

    • Builder

      public Builder()
      Deprecated.
  • Method Details

    • title

      public Dialogs.Builder title(String title)
      Deprecated.
      Specify the dialog title.
      Parameters:
      title - dialog title
      Returns:
      this builder
    • headerText

      public Dialogs.Builder headerText(String header)
      Deprecated.
      Specify the dialog header text. This is text that is displayed prominently within the dialog.
      Parameters:
      header - dialog header
      Returns:
      this builder
      See Also:
    • contentText

      public Dialogs.Builder contentText(String content)
      Deprecated.
      Specify the dialog content text. This is text that is displayed within the dialog.
      Parameters:
      content - dialog content text
      Returns:
      this builder
      See Also:
    • content

      public Dialogs.Builder content(Node content)
      Deprecated.
      Specify a Node to display within the dialog.
      Parameters:
      content - dialog content
      Returns:
      this builder
      See Also:
    • expandableContent

      public Dialogs.Builder expandableContent(Node content)
      Deprecated.
      Specify a Node to display within the dialog as expandable content, not initially visible.
      Parameters:
      content - dialog expandable content
      Returns:
      this builder
      See Also:
    • owner

      public Dialogs.Builder owner(Window owner)
      Deprecated.
      Specify the dialog owner.
      Parameters:
      owner - dialog title
      Returns:
      this builder
    • resizable

      public Dialogs.Builder resizable()
      Deprecated.
      Make the dialog resizable (but default it is not).
      Returns:
      this builder
    • nonModal

      public Dialogs.Builder nonModal()
      Deprecated.
      Specify that the dialog should be non-modal. By default, most dialogs are modal (and therefore block clicks to other windows).
      Returns:
      this builder
    • modality

      public Dialogs.Builder modality(Modality modality)
      Deprecated.
      Specify the modality of the dialog.
      Parameters:
      modality - requested modality
      Returns:
      this builder
    • alertType

      public Dialogs.Builder alertType(Alert.AlertType type)
      Deprecated.
      Create a dialog styled as a specified alert type.
      Parameters:
      type -
      Returns:
      this builder
    • warning

      public Dialogs.Builder warning()
      Deprecated.
      Create a warning alert dialog.
      Returns:
      this builder
    • error

      public Dialogs.Builder error()
      Deprecated.
      Create an error alert dialog.
      Returns:
      this builder
    • information

      public Dialogs.Builder information()
      Deprecated.
      Create an information alert dialog.
      Returns:
      this builder
    • confirmation

      public Dialogs.Builder confirmation()
      Deprecated.
      Create an confirmation alert dialog.
      Returns:
      this builder
    • buttons

      public Dialogs.Builder buttons(ButtonType... buttonTypes)
      Deprecated.
      Specify the buttons to display in the dialog.
      Parameters:
      buttonTypes - buttons to use
      Returns:
      this builder
    • buttons

      public Dialogs.Builder buttons(String... buttonNames)
      Deprecated.
      Specify the buttons to display in the dialog.
      Parameters:
      buttonNames - names of buttons to use
      Returns:
      this builder
    • width

      public Dialogs.Builder width(double width)
      Deprecated.
      Specify the dialog width.
      Parameters:
      width - requested width
      Returns:
      this builder
    • height

      public Dialogs.Builder height(double height)
      Deprecated.
      Specify the dialog height.
      Parameters:
      height - requested height
      Returns:
      this builder
    • prefWidth

      public Dialogs.Builder prefWidth(double prefWidth)
      Deprecated.
      Specify the preferred width of the dialog pane.
      Parameters:
      prefWidth - preferred width
      Returns:
      this builder
      Since:
      v0.4.0
    • prefHeight

      public Dialogs.Builder prefHeight(double prefHeight)
      Deprecated.
      Specify the preferred height of the dialog pane.
      Parameters:
      prefHeight - preferred height
      Returns:
      this builder
      Since:
      v0.4.0
    • size

      public Dialogs.Builder size(double width, double height)
      Deprecated.
      Specify the dialog height.
      Parameters:
      width - requested width
      height - requested height
      Returns:
      this builder
    • build

      public Dialog<ButtonType> build()
      Deprecated.
      Build the dialog.
      Returns:
      a Dialog created with the specified features.
    • show

      public void show()
      Deprecated.
      Show the dialog. This is similar to build().show() except that it will automatically be called on the JavaFX application thread even if called from another thread.
    • showAndWait

      public Optional<ButtonType> showAndWait()
      Deprecated.
      Show the dialog. This is similar to build().showAndWait() except that it will automatically be called on the JavaFX application thread even if called from another thread. Callers should be cautious that this does not result in deadlock (e.g. if called from the Swing Event Dispatch Thread on some platforms).
      Returns: