public class MessageDialogBuilder extends Object
MessageDialog
class, use this to create instances of that class and to customize
themConstructor and Description |
---|
MessageDialogBuilder()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
MessageDialogBuilder |
addButton(MessageDialogButton button)
Adds a button to the dialog
|
MessageDialog |
build()
Builds a new
MessageDialog from the properties in the builder |
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 addButton(MessageDialogButton button)
button
- Button to add to the dialogCopyright © 2016. All rights reserved.