Interface Activity

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default String getName()
      Returns the name of this activity, defaulting to Resource.getIdentifier().
      org.uberfire.mvp.PlaceRequest getPlace()
      Returns the PlaceRequest that this Activity is currently tied to.
      default boolean isDefault()
      Returns whether or not this activity should be executed by default (on startup).
      default boolean isDynamic()
      Returns whether or not this activity is marked as dynamic (provided by external scripts).
      void onClose()
      Called by the framework to notify this activity that its Widget has been removed from the live GUI.
      void onOpen()
      Called by the framework to notify this activity that its Widget has been added to the live GUI.
      void onShutdown()
      Called by the framework to notify this activity that it is no longer associated with the PlaceRequest that was passed to onStartup(PlaceRequest).
      void onStartup​(org.uberfire.mvp.PlaceRequest place)
      Called by the framework to notify this activity that it is now associated with the given PlaceRequest.
      • Methods inherited from interface org.uberfire.security.Resource

        getDependencies, getIdentifier, getResourceType, isType
    • Method Detail

      • onStartup

        @JsMethod(name="onStartupPlace")
        void onStartup​(org.uberfire.mvp.PlaceRequest place)
        Called by the framework to notify this activity that it is now associated with the given PlaceRequest. When this lifecycle method is invoked, the activity's widget has not yet been added to the GUI.
        Parameters:
        place - The place that resolved to this activity
      • onOpen

        void onOpen()
        Called by the framework to notify this activity that its Widget has been added to the live GUI.
      • onClose

        void onClose()
        Called by the framework to notify this activity that its Widget has been removed from the live GUI.
      • onShutdown

        void onShutdown()
        Called by the framework to notify this activity that it is no longer associated with the PlaceRequest that was passed to onStartup(PlaceRequest).
      • getPlace

        org.uberfire.mvp.PlaceRequest getPlace()
        Returns the PlaceRequest that this Activity is currently tied to.
        Returns:
        the PlaceRequest that this activity was started for, or null if this activity is not in the started state.
      • isDefault

        default boolean isDefault()
        Returns whether or not this activity should be executed by default (on startup).
        Returns:
        true, if this activity should be executed by default, otherwise false.
      • isDynamic

        default boolean isDynamic()
        Returns whether or not this activity is marked as dynamic (provided by external scripts).
        Returns:
        true if this activity is dynamic, otherwise false.
      • getName

        default String getName()
        Returns the name of this activity, defaulting to Resource.getIdentifier().
        Returns:
        the activity's name