AlertBuilder
to open alerts and confirm-dialogs,
or default Vaadin Notifications
.@Deprecated public abstract class OverlayPresenter extends Object implements OverlayLayer
OverlayLayer.ModalityDomain, OverlayLayer.ModalityLevel
Modifier and Type | Field and Description |
---|---|
static int |
TIMEOUT_SECONDS_DEFAULT
Deprecated.
|
Constructor and Description |
---|
OverlayPresenter()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
openAlert(MessageStyleType type,
String title,
String body,
String okButton,
AlertCallback callback)
Deprecated.
Opens an alert dialog of given
type , with given title and body. |
void |
openAlert(MessageStyleType type,
String title,
View body,
String okButton,
AlertCallback callback)
Deprecated.
Opens an alert dialog of given
type , with given title and body. |
void |
openConfirmation(MessageStyleType type,
String title,
String body,
String confirmButton,
String cancelButton,
boolean cancelIsDefault,
ConfirmationCallback callback)
Deprecated.
Opens a confirmation dialog of given
type , with given title and body. |
void |
openConfirmation(MessageStyleType type,
String title,
View body,
String confirmButton,
String cancelButton,
boolean cancelIsDefault,
ConfirmationCallback callback)
Deprecated.
Opens a confirmation dialog of given
type , with given title and body. |
void |
openNotification(MessageStyleType type,
boolean doesTimeout,
String title)
Deprecated.
Opens a notification of given
type , with given body text; it can close automatically after a timeout. |
void |
openNotification(MessageStyleType type,
boolean doesTimeout,
String title,
String linkText,
NotificationCallback callback)
Deprecated.
Convenience method for presenting notification indicator with string content.
|
void |
openNotification(MessageStyleType type,
boolean doesTimeout,
View viewToShow)
Deprecated.
Opens a notification of given
type , with given body; it can close automatically after a timeout. |
OverlayCloser |
openOverlay(View view)
Deprecated.
Opens an overlay with default strong modality level.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
openOverlay
public static final int TIMEOUT_SECONDS_DEFAULT
public OverlayCloser openOverlay(View view)
openOverlay
in interface OverlayLayer
view
- View of the component to be displayed modally.public void openAlert(MessageStyleType type, String title, String body, String okButton, AlertCallback callback)
OverlayLayer
type
, with given title and body.openAlert
in interface OverlayLayer
type
- the message level, i.e. INFO, WARNING or ERRORtitle
- the alert dialog's titlebody
- the alert dialog's text bodyokButton
- the OK button textcallback
- the callback to execute when the OK button is pressed, or when the dialog is closedpublic void openAlert(MessageStyleType type, String title, View body, String okButton, AlertCallback callback)
OverlayLayer
type
, with given title and body.openAlert
in interface OverlayLayer
type
- the message level, i.e. INFO, WARNING or ERRORtitle
- the alert dialog's titlebody
- the alert dialog's body as a magnolia View
; alternatively one may wrap any Vaadin component as a View using ViewAdapter
okButton
- the OK button textcallback
- the callback to execute when the OK button is pressed, or when the dialog is closedpublic void openConfirmation(MessageStyleType type, String title, String body, String confirmButton, String cancelButton, boolean cancelIsDefault, ConfirmationCallback callback)
OverlayLayer
type
, with given title and body.openConfirmation
in interface OverlayLayer
type
- the message level, i.e. INFO, WARNING or ERRORtitle
- the confirmation dialog's titlebody
- the confirmation dialog's body textconfirmButton
- the confirm button textcancelButton
- the cancel button textcancelIsDefault
- whether the cancel button should be focused by defaultcallback
- the callback to execute when any button is pressed, or when the dialog is closedpublic void openConfirmation(MessageStyleType type, String title, View body, String confirmButton, String cancelButton, boolean cancelIsDefault, ConfirmationCallback callback)
OverlayLayer
type
, with given title and body.openConfirmation
in interface OverlayLayer
type
- the message level, i.e. INFO, WARNING or ERRORtitle
- the confirmation dialog's titlebody
- the confirmation dialog's body as a magnolia View
; alternatively one may wrap any Vaadin component as a View using ViewAdapter
confirmButton
- the confirm button textcancelButton
- the cancel button textcancelIsDefault
- whether the cancel button should be focused by defaultcallback
- the callback to execute when any button is pressed, or when the dialog is closedpublic void openNotification(MessageStyleType type, boolean doesTimeout, View viewToShow)
type
, with given body; it can close automatically after a timeout.openNotification
in interface OverlayLayer
viewToShow
- Content to show as View.public void openNotification(MessageStyleType type, boolean doesTimeout, String title)
type
, with given body text; it can close automatically after a timeout.openNotification
in interface OverlayLayer
title
- Content to show as string.public void openNotification(MessageStyleType type, boolean doesTimeout, String title, String linkText, NotificationCallback callback)
openNotification
in interface OverlayLayer
title
- Content to show as string.linkText
- Text to show in a link button.callback
- Callback for when user clicks on link.Copyright © 2020 Magnolia International Ltd.. All rights reserved.