public class ResurfaceShell extends Object implements info.magnolia.ui.api.shell.Shell, info.magnolia.ui.api.context.UiContext
In comparison with the M5 shell, this implementation favors stock Vaadin usage over GWT customizations.
Constructor and Description |
---|
ResurfaceShell(info.magnolia.ui.framework.message.MessagesManager messagesManager,
info.magnolia.i18nsystem.SimpleTranslator i18n) |
Modifier and Type | Method and Description |
---|---|
void |
askForConfirmation(String message,
info.magnolia.ui.api.shell.ConfirmationHandler listener) |
String |
getFragment() |
info.magnolia.ui.api.overlay.OverlayLayer |
getOverlayDelegate() |
void |
openAlert(info.magnolia.ui.api.overlay.MessageStyleType messageType,
String title,
String body,
String okButton,
info.magnolia.ui.api.overlay.AlertCallback callback) |
void |
openAlert(info.magnolia.ui.api.overlay.MessageStyleType messageType,
String title,
info.magnolia.ui.api.view.View content,
String okButton,
info.magnolia.ui.api.overlay.AlertCallback callback) |
void |
openAlert(info.magnolia.ui.api.overlay.MessageStyleType messageType,
info.magnolia.ui.api.view.View content,
String okButton,
info.magnolia.ui.api.overlay.AlertCallback callback) |
void |
openConfirmation(info.magnolia.ui.api.overlay.MessageStyleType messageType,
String title,
String body,
String confirmButton,
String cancelButton,
boolean cancelIsDefault,
info.magnolia.ui.api.overlay.ConfirmationCallback callback) |
void |
openConfirmation(info.magnolia.ui.api.overlay.MessageStyleType messageType,
String title,
info.magnolia.ui.api.view.View content,
String confirmButton,
String cancelButton,
boolean cancelIsDefault,
info.magnolia.ui.api.overlay.ConfirmationCallback callback) |
void |
openConfirmation(info.magnolia.ui.api.overlay.MessageStyleType messageType,
info.magnolia.ui.api.view.View content,
String confirmButton,
String cancelButton,
boolean cancelIsDefault,
info.magnolia.ui.api.overlay.ConfirmationCallback callback) |
void |
openNotification(info.magnolia.ui.api.overlay.MessageStyleType messageType,
boolean doesTimeout,
String title) |
void |
openNotification(info.magnolia.ui.api.overlay.MessageStyleType messageType,
boolean doesTimeout,
String title,
String linkText,
info.magnolia.ui.api.overlay.NotificationCallback cb) |
void |
openNotification(info.magnolia.ui.api.overlay.MessageStyleType messageType,
boolean doesTimeout,
info.magnolia.ui.api.view.View viewToShow) |
info.magnolia.ui.api.overlay.OverlayCloser |
openOverlay(info.magnolia.ui.api.view.View view) |
info.magnolia.ui.api.overlay.OverlayCloser |
openOverlay(info.magnolia.ui.api.view.View view,
info.magnolia.ui.api.overlay.OverlayLayer.ModalityLevel modalityLevel) |
info.magnolia.ui.api.overlay.OverlayCloser |
openOverlayOnView(info.magnolia.ui.api.view.View view,
info.magnolia.ui.api.view.View parent,
info.magnolia.ui.api.overlay.OverlayLayer.ModalityDomain modalityLocation,
info.magnolia.ui.api.overlay.OverlayLayer.ModalityLevel modalityLevel) |
void |
setFragment(String fragment) |
void |
showError(String message,
Exception e) |
void |
showNotification(String message) |
@Inject public ResurfaceShell(info.magnolia.ui.framework.message.MessagesManager messagesManager, info.magnolia.i18nsystem.SimpleTranslator i18n)
public void askForConfirmation(String message, info.magnolia.ui.api.shell.ConfirmationHandler listener)
askForConfirmation
in interface info.magnolia.ui.api.shell.Shell
public void showNotification(String message)
showNotification
in interface info.magnolia.ui.api.shell.Shell
public void showError(String message, Exception e)
showError
in interface info.magnolia.ui.api.shell.Shell
public String getFragment()
getFragment
in interface info.magnolia.ui.api.shell.Shell
public void setFragment(String fragment)
setFragment
in interface info.magnolia.ui.api.shell.Shell
public info.magnolia.ui.api.overlay.OverlayCloser openOverlayOnView(info.magnolia.ui.api.view.View view, info.magnolia.ui.api.view.View parent, info.magnolia.ui.api.overlay.OverlayLayer.ModalityDomain modalityLocation, info.magnolia.ui.api.overlay.OverlayLayer.ModalityLevel modalityLevel)
openOverlayOnView
in interface info.magnolia.ui.api.shell.Shell
public info.magnolia.ui.api.overlay.OverlayCloser openOverlay(info.magnolia.ui.api.view.View view)
openOverlay
in interface info.magnolia.ui.api.context.UiContext
openOverlay
in interface info.magnolia.ui.api.overlay.OverlayLayer
public info.magnolia.ui.api.overlay.OverlayCloser openOverlay(info.magnolia.ui.api.view.View view, info.magnolia.ui.api.overlay.OverlayLayer.ModalityLevel modalityLevel)
openOverlay
in interface info.magnolia.ui.api.context.UiContext
openOverlay
in interface info.magnolia.ui.api.overlay.OverlayLayer
public void openNotification(info.magnolia.ui.api.overlay.MessageStyleType messageType, boolean doesTimeout, String title)
openNotification
in interface info.magnolia.ui.api.context.UiContext
openNotification
in interface info.magnolia.ui.api.overlay.OverlayLayer
public void openNotification(info.magnolia.ui.api.overlay.MessageStyleType messageType, boolean doesTimeout, info.magnolia.ui.api.view.View viewToShow)
openNotification
in interface info.magnolia.ui.api.context.UiContext
openNotification
in interface info.magnolia.ui.api.overlay.OverlayLayer
public void openNotification(info.magnolia.ui.api.overlay.MessageStyleType messageType, boolean doesTimeout, String title, String linkText, info.magnolia.ui.api.overlay.NotificationCallback cb)
openNotification
in interface info.magnolia.ui.api.context.UiContext
openNotification
in interface info.magnolia.ui.api.overlay.OverlayLayer
public void openAlert(info.magnolia.ui.api.overlay.MessageStyleType messageType, String title, String body, String okButton, info.magnolia.ui.api.overlay.AlertCallback callback)
openAlert
in interface info.magnolia.ui.api.context.UiContext
openAlert
in interface info.magnolia.ui.api.overlay.OverlayLayer
public void openAlert(info.magnolia.ui.api.overlay.MessageStyleType messageType, info.magnolia.ui.api.view.View content, String okButton, info.magnolia.ui.api.overlay.AlertCallback callback)
openAlert
in interface info.magnolia.ui.api.context.UiContext
openAlert
in interface info.magnolia.ui.api.overlay.OverlayLayer
public void openAlert(info.magnolia.ui.api.overlay.MessageStyleType messageType, String title, info.magnolia.ui.api.view.View content, String okButton, info.magnolia.ui.api.overlay.AlertCallback callback)
openAlert
in interface info.magnolia.ui.api.context.UiContext
openAlert
in interface info.magnolia.ui.api.overlay.OverlayLayer
public void openConfirmation(info.magnolia.ui.api.overlay.MessageStyleType messageType, String title, String body, String confirmButton, String cancelButton, boolean cancelIsDefault, info.magnolia.ui.api.overlay.ConfirmationCallback callback)
openConfirmation
in interface info.magnolia.ui.api.context.UiContext
openConfirmation
in interface info.magnolia.ui.api.overlay.OverlayLayer
public void openConfirmation(info.magnolia.ui.api.overlay.MessageStyleType messageType, info.magnolia.ui.api.view.View content, String confirmButton, String cancelButton, boolean cancelIsDefault, info.magnolia.ui.api.overlay.ConfirmationCallback callback)
openConfirmation
in interface info.magnolia.ui.api.context.UiContext
openConfirmation
in interface info.magnolia.ui.api.overlay.OverlayLayer
public void openConfirmation(info.magnolia.ui.api.overlay.MessageStyleType messageType, String title, info.magnolia.ui.api.view.View content, String confirmButton, String cancelButton, boolean cancelIsDefault, info.magnolia.ui.api.overlay.ConfirmationCallback callback)
openConfirmation
in interface info.magnolia.ui.api.context.UiContext
openConfirmation
in interface info.magnolia.ui.api.overlay.OverlayLayer
public info.magnolia.ui.api.overlay.OverlayLayer getOverlayDelegate()
getOverlayDelegate
in interface info.magnolia.ui.api.context.UiContext
Copyright © 2018 Magnolia International Ltd.. All rights reserved.