public class ShellImpl extends AbstractUIContext implements info.magnolia.ui.api.shell.Shell, MessageEventHandler
Modifier and Type | Class and Description |
---|---|
static interface |
ShellImpl.ShellAppLocationProvider
Provides the current location of shell apps.
|
Constructor and Description |
---|
ShellImpl(info.magnolia.event.EventBus admincentralEventBus,
info.magnolia.ui.api.app.AppController appController,
MessagesManager messagesManager) |
Modifier and Type | Method and Description |
---|---|
info.magnolia.event.HandlerRegistration |
addFragmentChangedHandler(info.magnolia.ui.api.shell.FragmentChangedHandler handler) |
void |
askForConfirmation(String message,
info.magnolia.ui.api.shell.ConfirmationHandler listener) |
void |
enterFullScreenMode() |
void |
exitFullScreenMode() |
info.magnolia.ui.api.view.Viewport |
getAppViewport() |
String |
getFragment() |
info.magnolia.ui.vaadin.magnoliashell.MagnoliaShell |
getMagnoliaShell() |
info.magnolia.ui.api.view.Viewport |
getShellAppViewport() |
void |
hideAllMessages() |
protected OverlayPresenter |
initializeOverlayPresenter() |
void |
messageCleared(MessageEvent event) |
void |
messageRemoved(MessageEvent messageEvent) |
void |
messageSent(MessageEvent event) |
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)
Deprecated.
|
void |
pushToClient() |
void |
registerApps(List<String> appNames) |
void |
registerShellApp(info.magnolia.ui.vaadin.gwt.client.shared.magnoliashell.ShellAppType type,
com.vaadin.ui.Component component) |
void |
setFragment(String fragment) |
void |
setFullScreen(boolean isFullScreen) |
void |
setIndication(info.magnolia.ui.vaadin.gwt.client.shared.magnoliashell.ShellAppType type,
int indication) |
void |
setShellAppLocationProvider(ShellImpl.ShellAppLocationProvider shellAppLocationProvider) |
void |
setStickerView(info.magnolia.ui.api.view.View view) |
void |
setUserMenu(info.magnolia.ui.api.view.View view) |
void |
showError(String messageText,
Exception e) |
void |
showNotification(String messageText) |
void |
updateShellAppIndication(info.magnolia.ui.vaadin.gwt.client.shared.magnoliashell.ShellAppType type,
int incrementOrDecrement) |
getOverlayDelegate
@Inject public ShellImpl(@Named(value="admincentral") info.magnolia.event.EventBus admincentralEventBus, info.magnolia.ui.api.app.AppController appController, MessagesManager messagesManager)
protected OverlayPresenter initializeOverlayPresenter()
initializeOverlayPresenter
in class AbstractUIContext
public void setShellAppLocationProvider(ShellImpl.ShellAppLocationProvider shellAppLocationProvider)
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 messageText)
showNotification
in interface info.magnolia.ui.api.shell.Shell
public void showError(String messageText, 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.event.HandlerRegistration addFragmentChangedHandler(info.magnolia.ui.api.shell.FragmentChangedHandler handler)
addFragmentChangedHandler
in interface info.magnolia.ui.api.shell.Shell
@Deprecated 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 void setUserMenu(info.magnolia.ui.api.view.View view)
setUserMenu
in interface info.magnolia.ui.api.shell.Shell
public void setStickerView(info.magnolia.ui.api.view.View view)
setStickerView
in interface info.magnolia.ui.api.shell.Shell
public void messageSent(MessageEvent event)
messageSent
in interface MessageEventHandler
public void messageCleared(MessageEvent event)
messageCleared
in interface MessageEventHandler
public void messageRemoved(MessageEvent messageEvent)
messageRemoved
in interface MessageEventHandler
public void registerApps(List<String> appNames)
registerApps
in interface info.magnolia.ui.api.shell.Shell
public void pushToClient()
pushToClient
in interface info.magnolia.ui.api.shell.Shell
public info.magnolia.ui.api.view.Viewport getShellAppViewport()
public info.magnolia.ui.api.view.Viewport getAppViewport()
public void setIndication(info.magnolia.ui.vaadin.gwt.client.shared.magnoliashell.ShellAppType type, int indication)
public void updateShellAppIndication(info.magnolia.ui.vaadin.gwt.client.shared.magnoliashell.ShellAppType type, int incrementOrDecrement)
public void registerShellApp(info.magnolia.ui.vaadin.gwt.client.shared.magnoliashell.ShellAppType type, com.vaadin.ui.Component component)
public void hideAllMessages()
public void setFullScreen(boolean isFullScreen)
public info.magnolia.ui.vaadin.magnoliashell.MagnoliaShell getMagnoliaShell()
public void enterFullScreenMode()
enterFullScreenMode
in interface info.magnolia.ui.api.shell.Shell
public void exitFullScreenMode()
exitFullScreenMode
in interface info.magnolia.ui.api.shell.Shell
Copyright © 2020 Magnolia International Ltd.. All rights reserved.