Class AbstractWorkbenchPanelView<P extends WorkbenchPanelPresenter>

    • 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 Concrete Methods 
      Modifier and Type Method Description
      protected void addOnFocusHandler​(MultiPartWidget widget)  
      void addPanel​(org.uberfire.workbench.model.PanelDefinition panel, WorkbenchPanelView<?> view, org.uberfire.workbench.model.Position position)
      Throws UnsupportedOperationException when called.
      protected void addSelectionHandler​(com.google.gwt.event.logical.shared.HasSelectionHandlers<org.uberfire.workbench.model.PartDefinition> widget)  
      com.google.gwt.user.client.ui.Widget getPartDropRegion()
      This implementation returns null, meaning this panel does not support parts being dropped on it.
      P getPresenter()
      Returns this view's presenter.
      void maximize()
      Maximizes this view using WorkbenchLayout.maximize(Widget).
      boolean removePanel​(WorkbenchPanelView<?> child)
      Throws UnsupportedOperationException when called.
      void setElementId​(String elementId)
      Sets the ID of the physical root element of this view.
      String toString()  
      void unmaximize()
      Restores this view to its original unmaximized size and position using WorkbenchLayout.unmaximize(Widget).
      • Methods inherited from class com.google.gwt.user.client.ui.ResizeComposite

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

        claimElement, getWidget, 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 org.uberfire.client.mvp.HasPresenter

        init
      • Methods inherited from interface com.google.gwt.user.client.ui.IsWidget

        asWidget
      • Methods inherited from interface com.google.gwt.user.client.ui.RequiresResize

        onResize
    • Constructor Detail

      • AbstractWorkbenchPanelView

        public AbstractWorkbenchPanelView()
    • Method Detail

      • addPanel

        public void addPanel​(org.uberfire.workbench.model.PanelDefinition panel,
                             WorkbenchPanelView<?> view,
                             org.uberfire.workbench.model.Position position)
        Throws UnsupportedOperationException when called. Subclasses that wish to support child panels should override this and removePanel(WorkbenchPanelView).
        Specified by:
        addPanel in interface WorkbenchPanelView<P extends WorkbenchPanelPresenter>
        Parameters:
        panel - specifies the size that should be imposed on the nested view. Must not be null. FIXME: is this sensible/correct?
        view - the panel to nest inside this one. Must not be null.
        position - specifies which edge of this panel will be shared with the nested panel. Must not be null.
      • getPresenter

        public P getPresenter()
        Description copied from interface: WorkbenchPanelView
        Returns this view's presenter.
        Specified by:
        getPresenter in interface WorkbenchPanelView<P extends WorkbenchPanelPresenter>
        Returns:
        the presenter that this view is bound to. Will return null if invoked before the presenter calls HasPresenter.init(Object); afterward, the return value is never null.
      • addOnFocusHandler

        protected void addOnFocusHandler​(MultiPartWidget widget)
      • addSelectionHandler

        protected void addSelectionHandler​(com.google.gwt.event.logical.shared.HasSelectionHandlers<org.uberfire.workbench.model.PartDefinition> widget)
      • setElementId

        public void setElementId​(String elementId)
        Description copied from interface: WorkbenchPanelView
        Sets the ID of the physical root element of this view. For HTML-based views, this is the id attribute of the view's top-level DOM element. Implementations for other view technologies should map this to whatever the underlying widget/component system uses for unique identifiers.
        Specified by:
        setElementId in interface WorkbenchPanelView<P extends WorkbenchPanelPresenter>
        Parameters:
        elementId - the element ID to set. If null, the ID value will be cleared.
      • toString

        public String toString()
        Overrides:
        toString in class com.google.gwt.user.client.ui.UIObject
      • getPartDropRegion

        public com.google.gwt.user.client.ui.Widget getPartDropRegion()
        This implementation returns null, meaning this panel does not support parts being dropped on it. Subclasses that want to support Drag-and-Drop can override.
        Specified by:
        getPartDropRegion in interface WorkbenchPanelView<P extends WorkbenchPanelPresenter>
        Returns:
        the widget whose boundaries define the region where workbench parts can be dropped into this panel. For simple panel types that do not support child panels, this will typically be the same widget returned by IsWidget.asWidget(). For fancier panels, this will typically be some child panel within the view's internal structure.

        If the return value is null, parts will not be droppable on this view.