Class WorkbenchMenuBarView
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Composite
-
- org.uberfire.client.views.pfly.menu.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.ViewThe Menu Bar widget
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceWorkbenchMenuBarView.WorkbenchMenuNavBarView
-
Constructor Summary
Constructors Constructor Description WorkbenchMenuBarView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCollapseHandler(org.uberfire.mvp.Command command)voidaddContextGroupMenuItem(String menuItemId, String id, String label, org.uberfire.workbench.model.menu.MenuPosition position)voidaddContextMenuItem(String menuItemId, String id, String label, String parentId, org.uberfire.mvp.Command command, org.uberfire.workbench.model.menu.MenuPosition position)voidaddCustomMenuItem(com.google.gwt.user.client.ui.Widget menu, org.uberfire.workbench.model.menu.MenuPosition position)voidaddExpandHandler(org.uberfire.mvp.Command command)voidaddGroupMenuItem(String id, String label, org.uberfire.workbench.model.menu.MenuPosition position)voidaddMenuItem(String id, String label, String parentId, org.uberfire.mvp.Command command, org.uberfire.workbench.model.menu.MenuPosition position)voidclear()voidclearContextMenu()voidcollapse()voidenableContextMenuItem(String menuItemId, boolean enabled)voidenableMenuItem(String menuItemId, boolean enabled)voidexpand()voidselectMenuItem(String id)voidsetAllMenuItemsVisible(String perspectiveId, boolean visible)voidsetContextMenuItemVisible(String perspectiveId, boolean visible)voidsetMenuItemVisible(String perspectiveId, boolean visible)protected voidsetup()protected voidsetupNavBarCollapse()protected voidsetupToggle()-
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
-
-
-
-
Method Detail
-
setup
@PostConstruct protected void setup()
-
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:
addMenuItemin interfaceorg.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:
addCustomMenuItemin interfaceorg.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
-
addGroupMenuItem
public void addGroupMenuItem(String id, String label, org.uberfire.workbench.model.menu.MenuPosition position)
- Specified by:
addGroupMenuItemin interfaceorg.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:
addContextMenuItemin interfaceorg.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:
addContextGroupMenuItemin interfaceorg.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
-
clearContextMenu
public void clearContextMenu()
- Specified by:
clearContextMenuin interfaceorg.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
-
clear
public void clear()
- Specified by:
clearin interfaceorg.uberfire.client.workbench.widgets.menu.base.WorkbenchBaseMenuView- Specified by:
clearin interfaceorg.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
-
expand
public void expand()
- Specified by:
expandin interfaceorg.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
-
collapse
public void collapse()
- Specified by:
collapsein interfaceorg.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
-
selectMenuItem
public void selectMenuItem(String id)
- Specified by:
selectMenuItemin interfaceorg.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
-
addCollapseHandler
public void addCollapseHandler(org.uberfire.mvp.Command command)
- Specified by:
addCollapseHandlerin interfaceorg.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
-
addExpandHandler
public void addExpandHandler(org.uberfire.mvp.Command command)
- Specified by:
addExpandHandlerin interfaceorg.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
-
enableMenuItem
public void enableMenuItem(String menuItemId, boolean enabled)
- Specified by:
enableMenuItemin interfaceorg.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
-
enableContextMenuItem
public void enableContextMenuItem(String menuItemId, boolean enabled)
- Specified by:
enableContextMenuItemin interfaceorg.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
-
setAllMenuItemsVisible
public void setAllMenuItemsVisible(String perspectiveId, boolean visible)
- Specified by:
setAllMenuItemsVisiblein interfaceorg.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
-
setMenuItemVisible
public void setMenuItemVisible(String perspectiveId, boolean visible)
- Specified by:
setMenuItemVisiblein interfaceorg.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
-
setContextMenuItemVisible
public void setContextMenuItemVisible(String perspectiveId, boolean visible)
- Specified by:
setContextMenuItemVisiblein interfaceorg.uberfire.client.workbench.widgets.menu.WorkbenchMenuBarPresenter.View
-
-