Package qupath.lib.gui.dialogs
Class Dialogs.Builder
java.lang.Object
qupath.lib.gui.dialogs.Dialogs.Builder
- Enclosing class:
Dialogs
Deprecated.
Builder class to create a custom
Dialog
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionalertType
(Alert.AlertType type) Deprecated.Create a dialog styled as a specified alert type.build()
Deprecated.Build the dialog.Deprecated.Specify the buttons to display in the dialog.buttons
(ButtonType... buttonTypes) Deprecated.Specify the buttons to display in the dialog.Deprecated.Create an confirmation alert dialog.Deprecated.Specify aNode
to display within the dialog.contentText
(String content) Deprecated.Specify the dialog content text.error()
Deprecated.Create an error alert dialog.expandableContent
(Node content) Deprecated.Specify aNode
to display within the dialog as expandable content, not initially visible.headerText
(String header) Deprecated.Specify the dialog header text.height
(double height) Deprecated.Specify the dialog height.Deprecated.Create an information alert dialog.Deprecated.Specify the modality of the dialog.nonModal()
Deprecated.Specify that the dialog should be non-modal.Deprecated.Specify the dialog owner.prefHeight
(double prefHeight) Deprecated.Specify the preferred height of the dialog pane.prefWidth
(double prefWidth) Deprecated.Specify the preferred width of the dialog pane.Deprecated.Make the dialog resizable (but default it is not).void
show()
Deprecated.Show the dialog.Deprecated.Show the dialog.size
(double width, double height) Deprecated.Specify the dialog height.Deprecated.Specify the dialog title.warning()
Deprecated.Create a warning alert dialog.width
(double width) Deprecated.Specify the dialog width.
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
title
Deprecated.Specify the dialog title.- Parameters:
title
- dialog title- Returns:
- this builder
-
headerText
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
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
Deprecated.Specify aNode
to display within the dialog.- Parameters:
content
- dialog content- Returns:
- this builder
- See Also:
-
expandableContent
Deprecated.Specify aNode
to display within the dialog as expandable content, not initially visible.- Parameters:
content
- dialog expandable content- Returns:
- this builder
- See Also:
-
owner
Deprecated.Specify the dialog owner.- Parameters:
owner
- dialog title- Returns:
- this builder
-
resizable
Deprecated.Make the dialog resizable (but default it is not).- Returns:
- this 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
Deprecated.Specify the modality of the dialog.- Parameters:
modality
- requested modality- Returns:
- this builder
-
alertType
Deprecated.Create a dialog styled as a specified alert type.- Parameters:
type
-- Returns:
- this builder
-
warning
Deprecated.Create a warning alert dialog.- Returns:
- this builder
-
error
Deprecated.Create an error alert dialog.- Returns:
- this builder
-
information
Deprecated.Create an information alert dialog.- Returns:
- this builder
-
confirmation
Deprecated.Create an confirmation alert dialog.- Returns:
- this builder
-
buttons
Deprecated.Specify the buttons to display in the dialog.- Parameters:
buttonTypes
- buttons to use- Returns:
- this builder
-
buttons
Deprecated.Specify the buttons to display in the dialog.- Parameters:
buttonNames
- names of buttons to use- Returns:
- this builder
-
width
Deprecated.Specify the dialog width.- Parameters:
width
- requested width- Returns:
- this builder
-
height
Deprecated.Specify the dialog height.- Parameters:
height
- requested height- Returns:
- this builder
-
prefWidth
Deprecated.Specify the preferred width of the dialog pane.- Parameters:
prefWidth
- preferred width- Returns:
- this builder
- Since:
- v0.4.0
-
prefHeight
Deprecated.Specify the preferred height of the dialog pane.- Parameters:
prefHeight
- preferred height- Returns:
- this builder
- Since:
- v0.4.0
-
size
Deprecated.Specify the dialog height.- Parameters:
width
- requested widthheight
- requested height- Returns:
- this builder
-
build
Deprecated.Build the dialog.- Returns:
- a
Dialog
created with the specified features.
-
show
public void show()Deprecated.Show the dialog. This is similar tobuild().show()
except that it will automatically be called on the JavaFX application thread even if called from another thread. -
showAndWait
Deprecated.Show the dialog. This is similar tobuild().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:
-