Interface WorkbenchPartPresenter

    • Method Detail

      • getDefinition

        org.uberfire.workbench.model.PartDefinition getDefinition()
      • setDefinition

        void setDefinition​(org.uberfire.workbench.model.PartDefinition definition)
      • setWrappedWidget

        void setWrappedWidget​(com.google.gwt.user.client.ui.IsWidget widget)
      • getTitle

        String getTitle()
        Returns the text that a panel may choose to display beside this part's title. For example, MultiTabWorkbenchPanelPresenter uses this text for the tab's label.
        Returns:
        The title of this part; never null.
      • setTitle

        void setTitle​(String title)
        Sets the text that a panel may choose to display beside this part's title. For example, MultiTabWorkbenchPanelPresenter uses this text for the tab's label.
        Parameters:
        title - The title of this part. Null is not permitted.
      • getMenus

        void getMenus​(Consumer<org.uberfire.workbench.model.menu.Menus> menusConsumer)
        Returns the menus associated with this part.
      • setMenus

        void setMenus​(org.uberfire.workbench.model.menu.Menus menus)
        Sets the menus associated with this part.
        Parameters:
        menus - the menus associated with this part. Can be null, which means this part does not have menus.
      • getTitleDecoration

        com.google.gwt.user.client.ui.IsWidget getTitleDecoration()
        Returns the widget that a panel may choose to display beside this part's title.
        Returns:
        The title decoration widget to use. Null means no title decoration.
      • setTitleDecoration

        void setTitleDecoration​(com.google.gwt.user.client.ui.IsWidget titleDecoration)
        Sets the widget that a panel may choose to display beside this part's title.

        NOTE: presently, none of the built-in panel types display a part's title decoration.

        Parameters:
        titleDecoration - The title decoration widget to use. Null is permitted, and means no title decoration.
      • getContextId

        String getContextId()
      • setContextId

        void setContextId​(String contextId)