AlertBuilder
to open alerts and confirm-dialogs,
or default Vaadin Notifications
and Windows
.@Deprecated public interface UiContext extends OverlayLayer
OverlayLayer.ModalityDomain, OverlayLayer.ModalityLevel
Modifier and Type | Method and Description |
---|---|
OverlayLayer |
getOverlayDelegate()
Deprecated.
|
default 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. |
default 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. |
default void |
openAlert(MessageStyleType type,
View body,
String okButton,
AlertCallback callback)
Deprecated.
Opens an alert dialog of given
type , with given body but with empty title. |
default 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. |
default 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. |
default void |
openConfirmation(MessageStyleType type,
View body,
String confirmButton,
String cancelButton,
boolean cancelIsDefault,
ConfirmationCallback callback)
Deprecated.
Opens a confirmation dialog of given
type , with given body but with empty title. |
default void |
openNotification(MessageStyleType type,
boolean doesTimeout,
String title)
Deprecated.
Notification indicator is a message banner that only shows a message to user.
|
default void |
openNotification(MessageStyleType type,
boolean doesTimeout,
String title,
String linkText,
NotificationCallback cb)
Deprecated.
Notification indicator is a message banner that only shows a message to user.
|
default void |
openNotification(MessageStyleType type,
boolean doesTimeout,
View viewToShow)
Deprecated.
Notification indicator is a message banner that only shows a message to user.
|
default OverlayCloser |
openOverlay(View view)
Deprecated.
Open an Overlay on top of the OverlayLayer implementer.
|
default OverlayCloser |
openOverlay(View view,
OverlayLayer.ModalityLevel modalityLevel)
Deprecated.
Open an Overlay on top of the OverlayLayer implementer.
|
default OverlayCloser openOverlay(View view)
OverlayLayer
openOverlay
in interface OverlayLayer
view
- View of the component to be displayed modally.default OverlayCloser openOverlay(View view, OverlayLayer.ModalityLevel modalityLevel)
OverlayLayer
openOverlay
in interface OverlayLayer
modalityLevel
- Modality leveldefault void openAlert(MessageStyleType type, View body, String okButton, AlertCallback callback)
OverlayLayer
type
, with given body but with empty title.openAlert
in interface OverlayLayer
type
- the message level, i.e. INFO, WARNING or ERRORbody
- 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 closeddefault 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 closeddefault 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 closeddefault void openConfirmation(MessageStyleType type, View body, String confirmButton, String cancelButton, boolean cancelIsDefault, ConfirmationCallback callback)
OverlayLayer
type
, with given body but with empty title.openConfirmation
in interface OverlayLayer
type
- the message level, i.e. INFO, WARNING or ERRORbody
- 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 closeddefault 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 closeddefault 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 closeddefault void openNotification(MessageStyleType type, boolean doesTimeout, View viewToShow)
OverlayLayer
openNotification
in interface OverlayLayer
viewToShow
- Content to show as View.default void openNotification(MessageStyleType type, boolean doesTimeout, String title)
OverlayLayer
openNotification
in interface OverlayLayer
title
- Content to show as string.default void openNotification(MessageStyleType type, boolean doesTimeout, String title, String linkText, NotificationCallback cb)
OverlayLayer
openNotification
in interface OverlayLayer
title
- Content to show as string.linkText
- Text to show in a link button.cb
- Callback for when user clicks on link.OverlayLayer getOverlayDelegate()
Copyright © 2018 Magnolia International Ltd.. All rights reserved.