Class AbstractWorkbenchActivity

    • Constructor Detail

      • AbstractWorkbenchActivity

        public AbstractWorkbenchActivity​(PlaceManager placeManager)
    • Method Detail

      • getDefaultPosition

        public org.uberfire.workbench.model.Position getDefaultPosition()
        Description copied from interface: WorkbenchActivity
        Specifies custom positioning for this activity's view when the request to launch it comes without specific positioning information of its own. For a newly launching activity, when this method returns a non-null value, UberFire will attempt to create a new panel for this activity and add that new panel as a child of the current perspective's root panel. The activity's view will then be added to the new panel.

        If this method returns null, UberFire will attempt to add this activity's view directly to the root panel.

        Developers of cross-application reusable components should use caution with this feature. If the component declares a default position that is not supported by the root panel the application uses, the application's root panel could throw a ClassCastException when the framework attempts to create the child panel at the given position.

        Specified by:
        getDefaultPosition in interface WorkbenchActivity
        Returns:
        the Position to add a new child panel to the root that accommodates this activity's view, or null if this activity's view should be added directly to the root panel.
      • getOwningPlace

        public org.uberfire.mvp.PlaceRequest getOwningPlace()
        This default implementation returns null, meaning this activity can be displayed in any perspective.
        Specified by:
        getOwningPlace in interface WorkbenchActivity
        Returns:
        the owning perspective's place request, or null if this activity can appear in any perspective.
      • getWidget

        public abstract com.google.gwt.user.client.ui.IsWidget getWidget()
        Specified by:
        getWidget in interface WorkbenchActivity
      • getToolBar

        public org.uberfire.workbench.model.toolbar.ToolBar getToolBar()
        Specified by:
        getToolBar in interface WorkbenchActivity