Class WorkbenchMenuBarView

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, org.uberfire.client.workbench.widgets.menu.base.WorkbenchBaseMenuView, org.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View

    @ApplicationScoped
    public class WorkbenchMenuBarView
    extends com.google.gwt.user.client.ui.Composite
    implements org.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
    The Menu Bar widget
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  WorkbenchMenuBarView.WorkbenchMenuNavBarView  
      • 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
    • Field Summary

      • Fields inherited from class com.google.gwt.user.client.ui.UIObject

        DEBUG_ID_PREFIX
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCollapseHandler​(org.uberfire.mvp.Command command)  
      void addContextGroupMenuItem​(String menuItemId, String id, String label, org.uberfire.workbench.model.menu.MenuPosition position)  
      void addContextMenuItem​(String menuItemId, String id, String label, String parentId, org.uberfire.mvp.Command command, org.uberfire.workbench.model.menu.MenuPosition position)  
      void addCustomMenuItem​(com.google.gwt.user.client.ui.Widget menu, org.uberfire.workbench.model.menu.MenuPosition position)  
      void addExpandHandler​(org.uberfire.mvp.Command command)  
      void addGroupMenuItem​(String id, String label, org.uberfire.workbench.model.menu.MenuPosition position)  
      void addMenuItem​(String id, String label, String parentId, org.uberfire.mvp.Command command, org.uberfire.workbench.model.menu.MenuPosition position)  
      void clear()  
      void clearContextMenu()  
      void collapse()  
      void enableContextMenuItem​(String menuItemId, boolean enabled)  
      void enableMenuItem​(String menuItemId, boolean enabled)  
      void expand()  
      void selectMenuItem​(String id)  
      void setAllMenuItemsVisible​(String perspectiveId, boolean visible)  
      void setContextMenuItemVisible​(String perspectiveId, boolean visible)  
      void setMenuItemVisible​(String perspectiveId, boolean visible)  
      protected void setup()  
      protected void setupNavBarCollapse()  
      protected void setupToggle()  
      • Methods inherited from class com.google.gwt.user.client.ui.Composite

        claimElement, getWidget, initializeClaimedElement, initWidget, 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, toString
      • Methods inherited from interface com.google.gwt.user.client.ui.IsWidget

        asWidget
    • Constructor Detail

      • WorkbenchMenuBarView

        public WorkbenchMenuBarView()
    • Method Detail

      • setupToggle

        protected void setupToggle()
      • setupNavBarCollapse

        protected void setupNavBarCollapse()
      • addMenuItem

        public void addMenuItem​(String id,
                                String label,
                                String parentId,
                                org.uberfire.mvp.Command command,
                                org.uberfire.workbench.model.menu.MenuPosition position)
        Specified by:
        addMenuItem in interface org.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
      • addCustomMenuItem

        public void addCustomMenuItem​(com.google.gwt.user.client.ui.Widget menu,
                                      org.uberfire.workbench.model.menu.MenuPosition position)
        Specified by:
        addCustomMenuItem in interface org.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
      • addGroupMenuItem

        public void addGroupMenuItem​(String id,
                                     String label,
                                     org.uberfire.workbench.model.menu.MenuPosition position)
        Specified by:
        addGroupMenuItem in interface org.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
      • addContextMenuItem

        public void addContextMenuItem​(String menuItemId,
                                       String id,
                                       String label,
                                       String parentId,
                                       org.uberfire.mvp.Command command,
                                       org.uberfire.workbench.model.menu.MenuPosition position)
        Specified by:
        addContextMenuItem in interface org.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
      • addContextGroupMenuItem

        public void addContextGroupMenuItem​(String menuItemId,
                                            String id,
                                            String label,
                                            org.uberfire.workbench.model.menu.MenuPosition position)
        Specified by:
        addContextGroupMenuItem in interface org.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
      • clearContextMenu

        public void clearContextMenu()
        Specified by:
        clearContextMenu in interface org.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
      • clear

        public void clear()
        Specified by:
        clear in interface org.uberfire.client.workbench.widgets.menu.base.WorkbenchBaseMenuView
        Specified by:
        clear in interface org.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
      • expand

        public void expand()
        Specified by:
        expand in interface org.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
      • collapse

        public void collapse()
        Specified by:
        collapse in interface org.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
      • selectMenuItem

        public void selectMenuItem​(String id)
        Specified by:
        selectMenuItem in interface org.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
      • addCollapseHandler

        public void addCollapseHandler​(org.uberfire.mvp.Command command)
        Specified by:
        addCollapseHandler in interface org.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
      • addExpandHandler

        public void addExpandHandler​(org.uberfire.mvp.Command command)
        Specified by:
        addExpandHandler in interface org.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
      • enableMenuItem

        public void enableMenuItem​(String menuItemId,
                                   boolean enabled)
        Specified by:
        enableMenuItem in interface org.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
      • enableContextMenuItem

        public void enableContextMenuItem​(String menuItemId,
                                          boolean enabled)
        Specified by:
        enableContextMenuItem in interface org.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
      • setAllMenuItemsVisible

        public void setAllMenuItemsVisible​(String perspectiveId,
                                           boolean visible)
        Specified by:
        setAllMenuItemsVisible in interface org.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
      • setMenuItemVisible

        public void setMenuItemVisible​(String perspectiveId,
                                       boolean visible)
        Specified by:
        setMenuItemVisible in interface org.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
      • setContextMenuItemVisible

        public void setContextMenuItemVisible​(String perspectiveId,
                                              boolean visible)
        Specified by:
        setContextMenuItemVisible in interface org.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View