OverlayLayer.ModalityDomain, OverlayLayer.ModalityLevel
Constructor and Description |
---|
ResurfaceShell(MessagesManager messagesManager,
info.magnolia.i18nsystem.SimpleTranslator i18n) |
Modifier and Type | Method and Description |
---|---|
void |
askForConfirmation(String message,
ConfirmationHandler listener) |
String |
getFragment() |
OverlayLayer |
getOverlayDelegate() |
void |
openAlert(MessageStyleType messageType,
String title,
String body,
String okButton,
AlertCallback callback)
Opens an alert dialog of given
type , with given title and body. |
void |
openAlert(MessageStyleType messageType,
String title,
View content,
String okButton,
AlertCallback callback)
Opens an alert dialog of given
type , with given title and body. |
void |
openConfirmation(MessageStyleType messageType,
String title,
String body,
String confirmButton,
String cancelButton,
boolean cancelIsDefault,
ConfirmationCallback callback)
Opens a confirmation dialog of given
type , with given title and body. |
void |
openConfirmation(MessageStyleType messageType,
String title,
View content,
String confirmButton,
String cancelButton,
boolean cancelIsDefault,
ConfirmationCallback callback)
Opens a confirmation dialog of given
type , with given title and body. |
void |
openNotification(MessageStyleType messageType,
boolean doesTimeout,
String title)
Notification indicator is a message banner that only shows a message to user.
|
void |
openNotification(MessageStyleType messageType,
boolean doesTimeout,
String title,
String linkText,
NotificationCallback cb)
Notification indicator is a message banner that only shows a message to user.
|
void |
openNotification(MessageStyleType messageType,
boolean doesTimeout,
View viewToShow)
Notification indicator is a message banner that only shows a message to user.
|
OverlayCloser |
openOverlay(View view)
Deprecated.
|
OverlayCloser |
openOverlay(View view,
OverlayLayer.ModalityLevel modalityLevel)
Deprecated.
|
OverlayCloser |
openOverlayOnView(View view,
View parent,
OverlayLayer.ModalityDomain modalityLocation,
OverlayLayer.ModalityLevel modalityLevel)
Deprecated.
|
void |
setFragment(String fragment) |
void |
showError(String message,
Exception e) |
void |
showNotification(String message) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addFragmentChangedHandler, enterFullScreenMode, exitFullScreenMode, pushToClient, registerApps, setStickerView, setUserMenu
@Inject public ResurfaceShell(MessagesManager messagesManager, info.magnolia.i18nsystem.SimpleTranslator i18n)
public void askForConfirmation(String message, ConfirmationHandler listener)
askForConfirmation
in interface Shell
public void showNotification(String message)
showNotification
in interface Shell
public String getFragment()
getFragment
in interface Shell
public void setFragment(String fragment)
setFragment
in interface Shell
@Deprecated public OverlayCloser openOverlayOnView(View view, View parent, OverlayLayer.ModalityDomain modalityLocation, OverlayLayer.ModalityLevel modalityLevel)
Shell
openOverlayOnView
in interface Shell
view
- View to be displayed over the view.parent
- The View to open the Overlay on top of.@Deprecated public OverlayCloser openOverlay(View view)
OverlayLayer
openOverlay
in interface UiContext
openOverlay
in interface OverlayLayer
view
- View of the component to be displayed modally.@Deprecated public OverlayCloser openOverlay(View view, OverlayLayer.ModalityLevel modalityLevel)
OverlayLayer
openOverlay
in interface UiContext
openOverlay
in interface OverlayLayer
modalityLevel
- Modality levelpublic void openNotification(MessageStyleType messageType, boolean doesTimeout, String title)
OverlayLayer
openNotification
in interface UiContext
openNotification
in interface OverlayLayer
title
- Content to show as string.public void openNotification(MessageStyleType messageType, boolean doesTimeout, View viewToShow)
OverlayLayer
openNotification
in interface UiContext
openNotification
in interface OverlayLayer
viewToShow
- Content to show as View.public void openNotification(MessageStyleType messageType, boolean doesTimeout, String title, String linkText, NotificationCallback cb)
OverlayLayer
openNotification
in interface UiContext
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.public void openAlert(MessageStyleType messageType, String title, String body, String okButton, AlertCallback callback)
OverlayLayer
type
, with given title and body.openAlert
in interface UiContext
openAlert
in interface OverlayLayer
messageType
- 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 messageType, String title, View content, String okButton, AlertCallback callback)
OverlayLayer
type
, with given title and body.openAlert
in interface UiContext
openAlert
in interface OverlayLayer
messageType
- the message level, i.e. INFO, WARNING or ERRORtitle
- the alert dialog's titlecontent
- 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 messageType, String title, String body, String confirmButton, String cancelButton, boolean cancelIsDefault, ConfirmationCallback callback)
OverlayLayer
type
, with given title and body.openConfirmation
in interface UiContext
openConfirmation
in interface OverlayLayer
messageType
- 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 messageType, String title, View content, String confirmButton, String cancelButton, boolean cancelIsDefault, ConfirmationCallback callback)
OverlayLayer
type
, with given title and body.openConfirmation
in interface UiContext
openConfirmation
in interface OverlayLayer
messageType
- the message level, i.e. INFO, WARNING or ERRORtitle
- the confirmation dialog's titlecontent
- 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 OverlayLayer getOverlayDelegate()
getOverlayDelegate
in interface UiContext
Copyright © 2019 Magnolia International Ltd.. All rights reserved.