public static class WidgetModalMessageBox.Builder extends Object
WidgetModalMessageBox| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
WidgetModalMessageBox |
build()
Builds message box
|
WidgetModalMessageBox.Builder |
withCancel(String cancelLabel)
Defines cancel button label.
|
WidgetModalMessageBox.Builder |
withCancel(String cancelLabel,
Executable onCancel)
Defines cancel button label and on click callback.
|
WidgetModalMessageBox.Builder |
withConfirm(String confirmLabel,
Executable onConfirm)
Defines confirm button label and on click callback.
|
WidgetModalMessageBox.Builder |
withContent(org.zkoss.zk.ui.Component content)
Defines content displayed in the the message box.
|
WidgetModalMessageBox.Builder |
withFooter(String footerText)
Defines footer text.
|
WidgetModalMessageBox.Builder |
withFooter(String footerText,
String sclass)
Defines footer text with specific sclass.
|
WidgetModalMessageBox.Builder |
withHeader(String headerText)
Defines header text in content.
|
WidgetModalMessageBox.Builder |
withHeader(String headerText,
String sclass)
Defines header text with specific sclass.
|
WidgetModalMessageBox.Builder |
withId(String identifier)
Defines message box id which should be unique for different kind of message.
|
WidgetModalMessageBox.Builder |
withMessage(String messageText)
Defines message text.
|
WidgetModalMessageBox.Builder |
withMessage(String messageText,
String sclass)
Defines message text with specific sclass.
|
WidgetModalMessageBox.Builder |
withSclass(String sclass)
Defines sclass applied on entire msg box.
|
WidgetModalMessageBox.Builder |
withTitle(String title)
Defines title of of widget.
|
WidgetModalMessageBox.Builder |
withWarningTitle()
Defines warning title as title of msg box
withTitle(String). |
public WidgetModalMessageBox build()
public WidgetModalMessageBox.Builder withTitle(String title)
title - title to displaypublic WidgetModalMessageBox.Builder withCancel(String cancelLabel)
cancelLabel - label to be displayed on the button. If not defined then default label will be used.public WidgetModalMessageBox.Builder withCancel(String cancelLabel, Executable onCancel)
cancelLabel - label to be displayed on the button. If not defined then default label will be used.onCancel - executable which will be executed on cancel click.public WidgetModalMessageBox.Builder withConfirm(String confirmLabel, Executable onConfirm)
confirmLabel - label to be displayed on the button. If not defined then default label will be used.onConfirm - executable which will be executed on confirm click.public WidgetModalMessageBox.Builder withContent(org.zkoss.zk.ui.Component content)
withHeader(String),withFooter(String) (String)},withMessage(String) will be skipped.content - content to be rendered on the msg box.public WidgetModalMessageBox.Builder withHeader(String headerText)
headerText - header text.public WidgetModalMessageBox.Builder withHeader(String headerText, String sclass)
headerText - header text.sclass - sclass to be set on header.public WidgetModalMessageBox.Builder withMessage(String messageText)
messageText - message text.public WidgetModalMessageBox.Builder withMessage(String messageText, String sclass)
messageText - message text.sclass - sclass to be set on message.public WidgetModalMessageBox.Builder withFooter(String footerText)
footerText - message text.public WidgetModalMessageBox.Builder withFooter(String footerText, String sclass)
footerText - message text.sclass - sclass to be set on footer.public WidgetModalMessageBox.Builder withSclass(String sclass)
sclass - sclass to be applied.public WidgetModalMessageBox.Builder withWarningTitle()
withTitle(String).public WidgetModalMessageBox.Builder withId(String identifier)
identifier - identifier to be set.Copyright © 2018. All rights reserved.