@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 |
|---|---|
boolean |
canCloseAllPlaces() |
boolean |
canClosePlace(PlaceRequest place) |
void |
closeAllPlaces() |
boolean |
closeAllPlacesOrNothing() |
void |
closePlace(PlaceRequest placeToClose) |
void |
closePlace(PlaceRequest placeToClose,
Command doAfterClose) |
void |
closePlace(String id) |
void |
forceCloseAllPlaces() |
void |
forceClosePlace(PlaceRequest placeToClose) |
void |
forceClosePlace(String id) |
Collection<SplashScreenActivity> |
getActiveSplashScreens() |
Collection<PathPlaceRequest> |
getActivitiesForResourceType(ResourceTypeDefinition type)
Finds the currently open PlaceRequests for Activities that handle the given ResourceTypeDefinition.
|
Activity |
getActivity(PlaceRequest place)
Finds the currently open activity that handles the given PlaceRequest by ID.
|
List<Command> |
getOnCloseCallbacks(PlaceRequest place) |
List<Command> |
getOnOpenCallbacks(PlaceRequest place) |
PlaceStatus |
getStatus(PlaceRequest place) |
PlaceStatus |
getStatus(String id) |
List<PlaceRequest> |
getUncloseablePlaces() |
void |
goTo(PartDefinition part,
PanelDefinition panel) |
void |
goTo(Path path) |
void |
goTo(Path path,
PanelDefinition panel) |
void |
goTo(Path path,
PlaceRequest placeRequest) |
void |
goTo(Path path,
PlaceRequest placeRequest,
PanelDefinition panel) |
void |
goTo(PlaceRequest place) |
void |
goTo(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(PlaceRequest place,
org.jboss.errai.common.client.dom.HTMLElement addTo) |
void |
goTo(PlaceRequest place,
elemental2.dom.HTMLElement addTo) |
void |
goTo(PlaceRequest place,
PanelDefinition panel) |
void |
goTo(String identifier) |
void |
goTo(String id,
org.jboss.errai.common.client.dom.HTMLElement addTo) |
void |
goTo(String identifier,
PanelDefinition panel) |
void |
registerOnCloseCallback(PlaceRequest place,
Command callback) |
void |
registerOnOpenCallback(PlaceRequest place,
Command callback) |
void |
registerPerspectiveCloseChain(String perspectiveIdentifier,
BiParameterizedCommand<Command,PlaceRequest> closeChain)
Registers a callback interceptor that uses a chain approach to execute code before a PlaceRequest is closed,
if the perspective passed as a parameter is currently opened.
|
void |
tryClosePlace(PlaceRequest placeToClose,
Command onAfterClose) |
void |
unregisterOnCloseCallbacks(PlaceRequest place) |
void |
unregisterOnOpenCallbacks(PlaceRequest place) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteOnCloseCallbacks, executeOnOpenCallbackspublic void goTo(String identifier, PanelDefinition panel)
goTo in interface PlaceManagerpublic void goTo(String identifier)
goTo in interface PlaceManagerpublic void goTo(PlaceRequest place)
goTo in interface PlaceManagerpublic void goTo(Path path, PanelDefinition panel)
goTo in interface PlaceManagerpublic void goTo(Path path)
goTo in interface PlaceManagerpublic void goTo(Path path, PlaceRequest placeRequest, PanelDefinition panel)
goTo in interface PlaceManagerpublic void goTo(Path path, PlaceRequest placeRequest)
goTo in interface PlaceManagerpublic void goTo(PlaceRequest place, PanelDefinition panel)
goTo in interface PlaceManagerpublic void goTo(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(String id, org.jboss.errai.common.client.dom.HTMLElement addTo)
goTo in interface PlaceManagerpublic void goTo(PlaceRequest place, org.jboss.errai.common.client.dom.HTMLElement addTo)
goTo in interface PlaceManagerpublic void goTo(PlaceRequest place, elemental2.dom.HTMLElement addTo)
goTo in interface PlaceManagerpublic void goTo(PartDefinition part, PanelDefinition panel)
goTo in interface PlaceManagerpublic Activity getActivity(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(PlaceRequest place)
getStatus in interface PlaceManagerpublic void closePlace(String id)
closePlace in interface PlaceManagerpublic void closePlace(PlaceRequest placeToClose)
closePlace in interface PlaceManagerpublic void closePlace(PlaceRequest placeToClose, Command doAfterClose)
closePlace in interface PlaceManagerpublic void tryClosePlace(PlaceRequest placeToClose, Command onAfterClose)
tryClosePlace in interface PlaceManagerpublic void forceClosePlace(String id)
forceClosePlace in interface PlaceManagerpublic void forceClosePlace(PlaceRequest placeToClose)
forceClosePlace in interface PlaceManagerpublic void closeAllPlaces()
closeAllPlaces in interface PlaceManagerpublic void forceCloseAllPlaces()
forceCloseAllPlaces in interface PlaceManagerpublic boolean closeAllPlacesOrNothing()
closeAllPlacesOrNothing in interface PlaceManagerpublic boolean canClosePlace(PlaceRequest place)
canClosePlace in interface PlaceManagerpublic boolean canCloseAllPlaces()
canCloseAllPlaces in interface PlaceManagerpublic List<PlaceRequest> getUncloseablePlaces()
getUncloseablePlaces in interface PlaceManagerpublic void registerOnOpenCallback(PlaceRequest place, Command callback)
registerOnOpenCallback in interface PlaceManagerpublic void unregisterOnOpenCallbacks(PlaceRequest place)
unregisterOnOpenCallbacks in interface PlaceManagerpublic void registerOnCloseCallback(PlaceRequest place, Command callback)
registerOnCloseCallback in interface PlaceManagerpublic void unregisterOnCloseCallbacks(PlaceRequest place)
unregisterOnCloseCallbacks in interface PlaceManagerpublic void registerPerspectiveCloseChain(String perspectiveIdentifier, BiParameterizedCommand<Command,PlaceRequest> closeChain)
PlaceManagerregisterPerspectiveCloseChain in interface PlaceManagerperspectiveIdentifier - Perspective identifier for which the close chain must be called when it is being closed.closeChain - Callback to be called when a PlaceRequest is being closed. The callback command must invoke the chain
to proceed with the closing operation.public Collection<SplashScreenActivity> getActiveSplashScreens()
getActiveSplashScreens in interface PlaceManagerpublic List<Command> getOnOpenCallbacks(PlaceRequest place)
getOnOpenCallbacks in interface PlaceManagerpublic List<Command> getOnCloseCallbacks(PlaceRequest place)
getOnCloseCallbacks in interface PlaceManagerpublic Collection<PathPlaceRequest> getActivitiesForResourceType(ResourceTypeDefinition type)
PlaceManagergetActivitiesForResourceType in interface PlaceManagertype - the ResourceTypeDefinition whose activity to search forCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.