public class ShellImpl extends AbstractUIContext implements Shell, MessageEventHandler
Modifier and Type | Class and Description |
---|---|
static interface |
ShellImpl.ShellAppLocationProvider
Provides the current location of shell apps.
|
OverlayLayer.ModalityDomain, OverlayLayer.ModalityLevel
Constructor and Description |
---|
ShellImpl(info.magnolia.event.EventBus admincentralEventBus,
AppController appController,
MessagesManager messagesManager) |
getOverlayDelegate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOverlayDelegate, openAlert, openAlert, openConfirmation, openConfirmation, openNotification, openNotification, openNotification, openOverlay, openOverlay
@Inject public ShellImpl(@Named(value="admincentral") info.magnolia.event.EventBus admincentralEventBus, AppController appController, MessagesManager messagesManager)
protected OverlayPresenter initializeOverlayPresenter()
initializeOverlayPresenter
in class AbstractUIContext
public void setShellAppLocationProvider(ShellImpl.ShellAppLocationProvider shellAppLocationProvider)
public void askForConfirmation(String message, ConfirmationHandler listener)
askForConfirmation
in interface Shell
public void showNotification(String messageText)
showNotification
in interface Shell
public String getFragment()
getFragment
in interface Shell
public void setFragment(String fragment)
setFragment
in interface Shell
public info.magnolia.event.HandlerRegistration addFragmentChangedHandler(FragmentChangedHandler handler)
addFragmentChangedHandler
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.public void setUserMenu(View view)
setUserMenu
in interface Shell
public void setStickerView(View view)
setStickerView
in interface 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 Shell
public void pushToClient()
pushToClient
in interface Shell
public Viewport getShellAppViewport()
public Viewport getAppViewport()
public void setIndication(ShellAppType type, int indication)
public void updateShellAppIndication(ShellAppType type, int incrementOrDecrement)
public void registerShellApp(ShellAppType type, com.vaadin.ui.Component component)
public void hideAllMessages()
public void setFullScreen(boolean isFullScreen)
public MagnoliaShell getMagnoliaShell()
public void enterFullScreenMode()
enterFullScreenMode
in interface Shell
public void exitFullScreenMode()
exitFullScreenMode
in interface Shell
Copyright © 2021 Magnolia International Ltd.. All rights reserved.