本文整理了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>
暂无
代码示例来源: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();
}
内容来源于网络,如有侵权,请联系作者删除!