Package org.eclipse.jface.dialogs
Class PlainMessageDialog.Builder
java.lang.Object
org.eclipse.jface.dialogs.PlainMessageDialog.Builder
- Enclosing class:
- PlainMessageDialog
The Builder to create PlainMessageDialog instances. It has a fluent API
(every method returns the same builder instance).
- Since:
- 3.23
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create the dialog with all the parameters set in the builder.buttonLabels
(List<String> buttonLabels) Sets the dialog's button labels.defaultButtonIndex
(int defaultButtonIndex) Sets another (other than 0) button as default button.image
(int iconId) Sets the dialog's image (e.g. information icon).Sets the dialog's image (e.g. information icon).Sets the dialog's message.titleImage
(Image image) Sets the shell's image.
-
Method Details
-
titleImage
Sets the shell's image.- Parameters:
image
- the image- Returns:
- this
- See Also:
-
image
Sets the dialog's image (e.g. information icon).- Parameters:
image
- the image- Returns:
- this
-
image
Sets the dialog's image (e.g. information icon).- Parameters:
iconId
- SWT style of the image, see below for support styles- Returns:
- this
- See Also:
-
message
Sets the dialog's message.- Parameters:
message
- the message- Returns:
- this
-
buttonLabels
Sets the dialog's button labels. Without callingdefaultButtonIndex(int)
the first entry is used for the default button.- Parameters:
buttonLabels
- the button labels- Returns:
- this
-
defaultButtonIndex
Sets another (other than 0) button as default button.- Parameters:
defaultButtonIndex
- the default button index- Returns:
- this
-
build
Create the dialog with all the parameters set in the builder.- Returns:
- the PlainMessageDialog instance
-