Codota Logo
PlaceManager.registerPerspectiveCloseChain
Code IndexAdd Codota to your IDE (free)

How to use
registerPerspectiveCloseChain
method
in
org.uberfire.client.mvp.PlaceManager

Best Java code snippets using org.uberfire.client.mvp.PlaceManager.registerPerspectiveCloseChain (Showing top 1 results out of 315)

  • Common ways to obtain PlaceManager
private void myMethod () {
PlaceManager p =
  • Codota IconMockito mockito;mockito.mock(PlaceManager.class)
  • Smart code suggestions by Codota
}
origin: org.kie.workbench.screens/kie-wb-common-library-client

@PostConstruct
public void setup() {
  libraryBreadcrumbs.init(this);
  projectContext.addChangeHandler(this);
  placeManager.registerPerspectiveCloseChain(LIBRARY_PERSPECTIVE,
                        (chain, place) -> {
                          if (LIBRARY_PERSPECTIVE.equals(place.getIdentifier())) {
                            closeAllPlacesOrNothing(chain::execute);
                          } else {
                            closePlace(chain::execute,
                                 place);
                          }
                        });
}
org.uberfire.client.mvpPlaceManagerregisterPerspectiveCloseChain

Javadoc

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. It will not be executed in the case of a forced close.

Popular methods of PlaceManager

  • goTo
  • closePlace
  • forceClosePlace
  • getStatus
  • tryClosePlace
  • closeAllPlaces
  • executeOnCloseCallbacks
  • executeOnOpenCallbacks
  • getActivity
  • registerOnOpenCallback
  • forceCloseAllPlaces
  • getOnOpenCallbacks
  • forceCloseAllPlaces,
  • getOnOpenCallbacks,
  • getUncloseablePlaces,
  • registerOnCloseCallback,
  • canClosePlace,
  • getActiveSplashScreens,
  • getCurrentPlaceRequest,
  • getOnCloseCallbacks

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now