Interface ListBarWidget

  • All Superinterfaces:
    com.google.gwt.event.logical.shared.HasBeforeSelectionHandlers<org.uberfire.workbench.model.PartDefinition>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.event.logical.shared.HasSelectionHandlers<org.uberfire.workbench.model.PartDefinition>, com.google.gwt.user.client.ui.IsWidget, MultiPartWidget, com.google.gwt.user.client.ui.RequiresResize

    public interface ListBarWidget
    extends MultiPartWidget
    API contract for the header widget of panel views that extend AbstractSimpleWorkbenchPanelView and MultiListWorkbenchPanelView. Each application needs exactly one implementation of this class at compile time (usually this will come from the view module). The implementing type must be a Dependent-scoped CDI bean.
    • Field Detail

      • DEBUG_TITLE_PREFIX

        static final String DEBUG_TITLE_PREFIX
        When a part is added to the list bar, a special title widget is created for it. This title widget is draggable. To promote testability, implementations of this interface must set the draggable title widget's debug ID using the Widget.ensureDebugId() call. The debug ID must have the form DEBUG_ID_PREFIX + DEBUG_TITLE_PREFIX + partName.

        Note that debug IDs are only assigned when the app inherits the GWT Debug module. See UIObject.ensureDebugId(com.google.gwt.dom.client.Element, String) for details.

        See Also:
        Constant Field Values
    • Method Detail

      • enableDnd

        void enableDnd()
        Enable this list bar's to support drag and drop.
      • disableDnd

        void disableDnd()
        Disable this list bar's to support drag and drop.
      • isDndEnabled

        boolean isDndEnabled()
      • enableClosePart

        void enableClosePart()
        Enable support to close parts.
      • disableClosePart

        void disableClosePart()
        Disable support to close parts.
      • disableExpandPart

        void disableExpandPart()
        Disable part expansion (maximize)