Class AbstractMultiPartWorkbenchPanelView<P extends AbstractMultiPartWorkbenchPanelPresenter>

    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

        com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void addPart​(WorkbenchPartPresenter.View view)
      Adds the given part view to this panel if this panel does not already contain a view that handles the same PlaceRequest as the given one.
      void changeTitle​(org.uberfire.workbench.model.PartDefinition part, String title, com.google.gwt.user.client.ui.IsWidget titleDecoration)
      Assigns the given title to the given part, if the part belongs to this panel.
      void init​(P presenter)  
      void onResize()  
      protected void populatePartViewContainer()
      Fills the partViewContainer with the contextWidget and the content widget obtained from setupWidget().
      boolean removePart​(org.uberfire.workbench.model.PartDefinition part)
      Removes the given part from this view, if it belonged to this view.
      boolean selectPart​(org.uberfire.workbench.model.PartDefinition part)
      Makes the given part visible and focused, if it belongs to this view.
      void setFocus​(boolean hasFocus)
      Informs this view that it has gained or lost keyboard focus.
      protected abstract MultiPartWidget setupWidget()  
      • Methods inherited from class com.google.gwt.user.client.ui.ResizeComposite

        initWidget
      • Methods inherited from class com.google.gwt.user.client.ui.Composite

        claimElement, initializeClaimedElement, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
      • Methods inherited from class com.google.gwt.user.client.ui.Widget

        addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
      • Methods inherited from class com.google.gwt.user.client.ui.UIObject

        addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent
      • Methods inherited from interface com.google.gwt.user.client.ui.IsWidget

        asWidget
    • Constructor Detail

      • AbstractMultiPartWorkbenchPanelView

        public AbstractMultiPartWorkbenchPanelView()
    • Method Detail

      • populatePartViewContainer

        protected void populatePartViewContainer()
        Fills the partViewContainer with the contextWidget and the content widget obtained from setupWidget(). Can be used as a hook for subclasses to add their own stuff either before or after the super.populatePartViewContainer() call.
      • init

        public void init​(P presenter)
      • addPart

        public void addPart​(WorkbenchPartPresenter.View view)
        Description copied from interface: WorkbenchPanelView
        Adds the given part view to this panel if this panel does not already contain a view that handles the same PlaceRequest as the given one. If this panel does already contain such a part, the existing one is selected and the given one is not added.
        Parameters:
        view - the view to add as long as it is not a duplicate. Must not be null.
      • changeTitle

        public void changeTitle​(org.uberfire.workbench.model.PartDefinition part,
                                String title,
                                com.google.gwt.user.client.ui.IsWidget titleDecoration)
        Description copied from interface: WorkbenchPanelView
        Assigns the given title to the given part, if the part belongs to this panel.
        Parameters:
        part - the part whose title to change. Must not be null.
        title - the new title. Must not be null.
        titleDecoration - An optional widget to display beside the title. Note that some implementations do not support title decorations, and they will ignore this. Null is permitted, and means no decoration.
      • selectPart

        public boolean selectPart​(org.uberfire.workbench.model.PartDefinition part)
        Description copied from interface: WorkbenchPanelView
        Makes the given part visible and focused, if it belongs to this view.
        Parameters:
        part - the part to reveal and give focus to.
        Returns:
        true if the part was found, made visible, and given focus. False if not.
      • removePart

        public boolean removePart​(org.uberfire.workbench.model.PartDefinition part)
        Description copied from interface: WorkbenchPanelView
        Removes the given part from this view, if it belonged to this view.
        Parameters:
        part - the part to remove.
        Returns:
        true if the part was found and removed. False if not.
      • setFocus

        public void setFocus​(boolean hasFocus)
        Description copied from interface: WorkbenchPanelView
        Informs this view that it has gained or lost keyboard focus. Focused views may respond by updating their style to look more prominent than unfocused views.
        Parameters:
        hasFocus - if true, this panel now has focus. If false, this panel does not have focus.
      • onResize

        public void onResize()
        Specified by:
        onResize in interface com.google.gwt.user.client.ui.RequiresResize
        Overrides:
        onResize in class com.google.gwt.user.client.ui.ResizeComposite