@ApplicationScoped public class PluginPlaceManagerImpl extends Object implements PlaceManager
PlaceManager implementation is active for plugins only, to
satisfy compile-time dependencies (of other components on the plugin's
classpath that require a place manager). It is not used at runtime as plugins
use the SharedSingleton PlaceManager provided by the main
application. Plugins get access to a fully functional PlaceManager
using @Inject @Shared ShareablePlaceManager.| Constructor and Description |
|---|
PluginPlaceManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeAllPlaces() |
boolean |
closeAllPlacesOrNothing() |
void |
closePlace(org.uberfire.mvp.PlaceRequest placeToClose) |
void |
closePlace(String id) |
void |
forceCloseAllPlaces() |
void |
forceClosePlace(org.uberfire.mvp.PlaceRequest placeToClose) |
void |
forceClosePlace(String id) |
Collection<SplashScreenActivity> |
getActiveSplashScreens() |
Collection<org.uberfire.mvp.impl.PathPlaceRequest> |
getActivitiesForResourceType(org.uberfire.workbench.type.ResourceTypeDefinition type)
Finds the currently open PlaceRequests for Activities that handle the given ResourceTypeDefinition.
|
Activity |
getActivity(org.uberfire.mvp.PlaceRequest place)
Finds the currently open activity that handles the given PlaceRequest by ID.
|
org.uberfire.mvp.Command |
getOpenCallback(org.uberfire.mvp.PlaceRequest place) |
PlaceStatus |
getStatus(org.uberfire.mvp.PlaceRequest place) |
PlaceStatus |
getStatus(String id) |
void |
goTo(org.uberfire.workbench.model.PartDefinition part,
org.uberfire.workbench.model.PanelDefinition panel) |
void |
goTo(org.uberfire.backend.vfs.Path path) |
void |
goTo(org.uberfire.backend.vfs.Path path,
org.uberfire.workbench.model.PanelDefinition panel) |
void |
goTo(org.uberfire.backend.vfs.Path path,
org.uberfire.mvp.PlaceRequest placeRequest) |
void |
goTo(org.uberfire.backend.vfs.Path path,
org.uberfire.mvp.PlaceRequest placeRequest,
org.uberfire.workbench.model.PanelDefinition panel) |
void |
goTo(org.uberfire.mvp.PlaceRequest place) |
void |
goTo(org.uberfire.mvp.PlaceRequest place,
com.google.gwt.user.client.ui.HasWidgets addTo)
Locates the Activity associated with the given place, and if that activity is not already part of the workbench,
starts it and adds its view to the given widget container.
|
void |
goTo(org.uberfire.mvp.PlaceRequest place,
org.jboss.errai.common.client.dom.HTMLElement addTo) |
void |
goTo(org.uberfire.mvp.PlaceRequest place,
org.uberfire.workbench.model.PanelDefinition panel) |
void |
goTo(String identifier) |
void |
goTo(String identifier,
org.uberfire.workbench.model.PanelDefinition panel) |
void |
registerOnOpenCallback(org.uberfire.mvp.PlaceRequest place,
org.uberfire.mvp.Command command) |
void |
tryClosePlace(org.uberfire.mvp.PlaceRequest placeToClose,
org.uberfire.mvp.Command onAfterClose) |
void |
unregisterOnOpenCallback(org.uberfire.mvp.PlaceRequest place) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteOnOpenCallbackpublic void goTo(String identifier, org.uberfire.workbench.model.PanelDefinition panel)
goTo in interface PlaceManagerpublic void goTo(String identifier)
goTo in interface PlaceManagerpublic void goTo(org.uberfire.mvp.PlaceRequest place)
goTo in interface PlaceManagerpublic void goTo(org.uberfire.backend.vfs.Path path,
org.uberfire.workbench.model.PanelDefinition panel)
goTo in interface PlaceManagerpublic void goTo(org.uberfire.backend.vfs.Path path)
goTo in interface PlaceManagerpublic void goTo(org.uberfire.backend.vfs.Path path,
org.uberfire.mvp.PlaceRequest placeRequest,
org.uberfire.workbench.model.PanelDefinition panel)
goTo in interface PlaceManagerpublic void goTo(org.uberfire.backend.vfs.Path path,
org.uberfire.mvp.PlaceRequest placeRequest)
goTo in interface PlaceManagerpublic void goTo(org.uberfire.mvp.PlaceRequest place,
org.uberfire.workbench.model.PanelDefinition panel)
goTo in interface PlaceManagerpublic void goTo(org.uberfire.mvp.PlaceRequest place,
com.google.gwt.user.client.ui.HasWidgets addTo)
PlaceManagerThe activity will be properly shut down in any of the following scenarios:
PlaceManager.closePlace(PlaceRequest),
PlaceManager.closePlace(String), or PlaceManager.closeAllPlaces()
goTo in interface PlaceManageraddTo - The container to add the widget's view to. Its corresponding DOM element must have a CSS
position setting of relative or absolute and an explicit size set. This can
be accomplished through direct use of CSS, or through the
Layouts.setToFillParent(com.google.gwt.user.client.ui.Widget) call.public void goTo(org.uberfire.mvp.PlaceRequest place,
org.jboss.errai.common.client.dom.HTMLElement addTo)
goTo in interface PlaceManagerpublic void goTo(org.uberfire.workbench.model.PartDefinition part,
org.uberfire.workbench.model.PanelDefinition panel)
goTo in interface PlaceManagerpublic Activity getActivity(org.uberfire.mvp.PlaceRequest place)
PlaceManagerActivityManagerImpl#resolveExistingParts(PlaceRequest) for a variant that does.
(TODO: should this method care about paths? if not, should the other method be added to the interface?)getActivity in interface PlaceManagerplace - the PlaceRequest whose activity to search forpublic PlaceStatus getStatus(String id)
getStatus in interface PlaceManagerpublic PlaceStatus getStatus(org.uberfire.mvp.PlaceRequest place)
getStatus in interface PlaceManagerpublic void closePlace(String id)
closePlace in interface PlaceManagerpublic void closePlace(org.uberfire.mvp.PlaceRequest placeToClose)
closePlace in interface PlaceManagerpublic void tryClosePlace(org.uberfire.mvp.PlaceRequest placeToClose,
org.uberfire.mvp.Command onAfterClose)
tryClosePlace in interface PlaceManagerpublic void forceClosePlace(String id)
forceClosePlace in interface PlaceManagerpublic void forceClosePlace(org.uberfire.mvp.PlaceRequest placeToClose)
forceClosePlace in interface PlaceManagerpublic void closeAllPlaces()
closeAllPlaces in interface PlaceManagerpublic void forceCloseAllPlaces()
forceCloseAllPlaces in interface PlaceManagerpublic boolean closeAllPlacesOrNothing()
closeAllPlacesOrNothing in interface PlaceManagerpublic void registerOnOpenCallback(org.uberfire.mvp.PlaceRequest place,
org.uberfire.mvp.Command command)
registerOnOpenCallback in interface PlaceManagerpublic void unregisterOnOpenCallback(org.uberfire.mvp.PlaceRequest place)
unregisterOnOpenCallback in interface PlaceManagerpublic Collection<SplashScreenActivity> getActiveSplashScreens()
getActiveSplashScreens in interface PlaceManagerpublic org.uberfire.mvp.Command getOpenCallback(org.uberfire.mvp.PlaceRequest place)
getOpenCallback in interface PlaceManagerpublic Collection<org.uberfire.mvp.impl.PathPlaceRequest> getActivitiesForResourceType(org.uberfire.workbench.type.ResourceTypeDefinition type)
PlaceManagergetActivitiesForResourceType in interface PlaceManagertype - the ResourceTypeDefinition whose activity to search forCopyright © 2012–2017 JBoss by Red Hat. All rights reserved.