public class MessageDialogBuilder extends Object
MessageDialog
class, use this to create instances of that class and to customize
themConstructor | Description |
---|---|
MessageDialogBuilder() |
Default constructor
|
Modifier and Type | Method | Description |
---|---|---|
MessageDialogBuilder |
addButton(MessageDialogButton button) |
Adds a button to the dialog
|
MessageDialog |
build() |
Builds a new
MessageDialog from the properties in the builder |
MessageDialogBuilder |
setExtraWindowHints(Collection<Window.Hint> extraWindowHints) |
Assigns a set of extra window hints that you want the built dialog to have
|
MessageDialogBuilder |
setText(String text) |
Sets the main text of the
MessageDialog |
MessageDialogBuilder |
setTitle(String title) |
Sets the title of the
MessageDialog |
public MessageDialog build()
MessageDialog
from the properties in the builderMessageDialog
public MessageDialogBuilder setTitle(String title)
MessageDialog
title
- New title of the message dialogpublic MessageDialogBuilder setText(String text)
MessageDialog
text
- Main text of the MessageDialog
public MessageDialogBuilder setExtraWindowHints(Collection<Window.Hint> extraWindowHints)
extraWindowHints
- Window hints to assign to the window in addition to the ones the builder will putpublic MessageDialogBuilder addButton(MessageDialogButton button)
button
- Button to add to the dialogCopyright © 2020. All rights reserved.