org.uberfire.client.workbench.widgets.menu.megamenu.WorkbenchMegaMenuPresenter.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(101)

本文整理了Java中org.uberfire.client.workbench.widgets.menu.megamenu.WorkbenchMegaMenuPresenter.<init>()方法的一些代码示例,展示了WorkbenchMegaMenuPresenter.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkbenchMegaMenuPresenter.<init>()方法的具体详情如下:
包路径:org.uberfire.client.workbench.widgets.menu.megamenu.WorkbenchMegaMenuPresenter
类名称:WorkbenchMegaMenuPresenter
方法名:<init>

WorkbenchMegaMenuPresenter.<init>介绍

暂无

代码示例

代码示例来源:origin: kiegroup/appformer

@Override
protected WorkbenchMegaMenuPresenter makeDefaultPresenter() {
  return new WorkbenchMegaMenuPresenter(authzManager,
                     perspectiveManager,
                     activityManager,
                     identity,
                     view,
                     megaMenuBrands,
                     placeManager,
                     authorizationManager,
                     sessionInfo,
                     childMenuItemPresenters,
                     groupMenuItemPresenters,
                     childContextMenuItemPresenters,
                     groupContextMenuItemPresenters,
                     workbench,
                     experimentalActivitiesAuthorizationManager);
}

代码示例来源:origin: org.uberfire/uberfire-workbench-client

@Before
public void setup() {
  doReturn(true).when(megaMenuBrands).isUnsatisfied();
  presenter = spy(new WorkbenchMegaMenuPresenter(authzManager,
                          perspectiveManager,
                          activityManager,
                          identity,
                          view,
                          megaMenuBrands,
                          placeManager,
                          authorizationManager,
                          sessionInfo,
                          childMenuItemPresenters,
                          groupMenuItemPresenters,
                          childContextMenuItemPresenters,
                          groupContextMenuItemPresenters,
                          workbench,
                          experimentalActivitiesAuthorizationManager));
  reset(view);
  presenter.selectableMenuItemByIdentifier = spy(new HashMap<>());
  presenter.hasChildrenMenuItemByIdentifier = spy(new HashMap<>());
  presenter.canBeDisabledMenuItemByIdentifier = spy(new HashMap<>());
  presenter.canHideMenuItemByIdentifier = spy(new HashMap<>());
  doReturn(mock(ChildMenuItemPresenter.class)).when(childMenuItemPresenters).get();
  doReturn(mock(GroupMenuItemPresenter.class)).when(groupMenuItemPresenters).get();
  doReturn(mock(ChildContextMenuItemPresenter.class)).when(childContextMenuItemPresenters).get();
  doReturn(mock(GroupContextMenuItemPresenter.class)).when(groupContextMenuItemPresenters).get();
}

代码示例来源:origin: kiegroup/appformer

@Before
public void setup() {
  doReturn(true).when(megaMenuBrands).isUnsatisfied();
  presenter = spy(new WorkbenchMegaMenuPresenter(authzManager,
                          perspectiveManager,
                          activityManager,
                          identity,
                          view,
                          megaMenuBrands,
                          placeManager,
                          authorizationManager,
                          sessionInfo,
                          childMenuItemPresenters,
                          groupMenuItemPresenters,
                          childContextMenuItemPresenters,
                          groupContextMenuItemPresenters,
                          workbench,
                          experimentalActivitiesAuthorizationManager));
  reset(view);
  presenter.selectableMenuItemByIdentifier = spy(new HashMap<>());
  presenter.hasChildrenMenuItemByIdentifier = spy(new HashMap<>());
  presenter.canBeDisabledMenuItemByIdentifier = spy(new HashMap<>());
  presenter.canHideMenuItemByIdentifier = spy(new HashMap<>());
  doReturn(mock(ChildMenuItemPresenter.class)).when(childMenuItemPresenters).get();
  doReturn(mock(GroupMenuItemPresenter.class)).when(groupMenuItemPresenters).get();
  doReturn(mock(ChildContextMenuItemPresenter.class)).when(childContextMenuItemPresenters).get();
  doReturn(mock(GroupContextMenuItemPresenter.class)).when(groupContextMenuItemPresenters).get();
}

相关文章