- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.uberfire.client.workbench.part.WorkbenchPartPresenter.getMenus()
方法的一些代码示例,展示了WorkbenchPartPresenter.getMenus()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkbenchPartPresenter.getMenus()
方法的具体详情如下:
包路径:org.uberfire.client.workbench.part.WorkbenchPartPresenter
类名称:WorkbenchPartPresenter
方法名:getMenus
[英]Returns the menus associated with this part.
[中]返回与此部件关联的菜单。
代码示例来源:origin: kiegroup/appformer
void setupContextMenu() {
contextMenu.clear();
final WorkbenchPartPresenter.View part = (WorkbenchPartPresenter.View) currentPart.getK2().getWidget(0);
if (part.getPresenter().getMenus() != null && part.getPresenter().getMenus().getItems().size() > 0) {
for (final MenuItem menuItem : part.getPresenter().getMenus().getItems()) {
final Widget result = makeItem(menuItem,
true);
if (result != null) {
contextMenu.add(result);
}
}
}
contextMenu.setVisible(contextMenu.getWidgetCount() > 0);
}
代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-patternfly
void setupContextMenu() {
contextMenu.clear();
final WorkbenchPartPresenter.View part = (WorkbenchPartPresenter.View) currentPart.getK2().getWidget(0);
if (part.getPresenter().getMenus() != null && part.getPresenter().getMenus().getItems().size() > 0) {
for (final MenuItem menuItem : part.getPresenter().getMenus().getItems()) {
final Widget result = makeItem(menuItem,
true);
if (result != null) {
contextMenu.add(result);
}
}
}
contextMenu.setVisible(contextMenu.getWidgetCount() > 0);
}
代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-bs2
private void setupContextMenu() {
contextMenu.clear();
final WorkbenchPartPresenter.View part = (WorkbenchPartPresenter.View) currentPart.getK2().getWidget( 0 );
if ( part.getPresenter().getMenus() != null && part.getPresenter().getMenus().getItems().size() > 0 ) {
for ( final MenuItem menuItem : part.getPresenter().getMenus().getItems() ) {
final Widget result = makeItem( menuItem, true );
if ( result != null ) {
final ButtonGroup bg = new ButtonGroup();
bg.add( result );
contextMenu.add( bg );
}
}
}
}
代码示例来源:origin: kiegroup/appformer
@Override
public void addPart(final WorkbenchPartPresenter.View view) {
final PartDefinition partDefinition = view.getPresenter().getDefinition();
if (parts.containsKey(partDefinition) == false) {
final MultiScreenView screen = multiScreenViews.get();
screen.setContent(view);
screen.setTitle(view.getPresenter().getTitle());
if (view.getPresenter().getTitleDecoration() != null) {
screen.setTitleWidget(view.getPresenter().getTitleDecoration());
}
if (parts.isEmpty() && partDefinition.getParentPanel().getPosition() == null) {
screen.disableClose();
}
screen.setCloseHandler(() -> panelManager.closePart(partDefinition));
Optional.ofNullable(view.getPresenter().getMenus())
.ifPresent(menus -> menus.getItems().stream().map(menuBuilder)
.forEachOrdered(e -> e.ifPresent(element -> screen.addMenus(element)))
);
content.appendChild(screen.getElement());
parts.put(partDefinition,
screen);
}
selectPart(partDefinition);
}
代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-patternfly
@Override
public void addPart(final WorkbenchPartPresenter.View view) {
final PartDefinition partDefinition = view.getPresenter().getDefinition();
if (parts.containsKey(partDefinition) == false) {
final MultiScreenView screen = multiScreenViews.get();
screen.setContent(view);
screen.setTitle(view.getPresenter().getTitle());
if (view.getPresenter().getTitleDecoration() != null) {
screen.setTitleWidget(view.getPresenter().getTitleDecoration());
}
if (parts.isEmpty() && partDefinition.getParentPanel().getPosition() == null) {
screen.disableClose();
}
screen.setCloseHandler(() -> panelManager.closePart(partDefinition));
Optional.ofNullable(view.getPresenter().getMenus())
.ifPresent(menus -> menus.getItems().stream().map(menuBuilder)
.forEachOrdered(e -> e.ifPresent(element -> screen.addMenus(element)))
);
content.appendChild(screen.getElement());
parts.put(partDefinition,
screen);
}
selectPart(partDefinition);
}
代码示例来源:origin: kiegroup/appformer
sourcePart,
sourcePanel,
sourceView.getPresenter().getMenus(),
title,
titleDecoration,
本文整理了Java中org.uberfire.client.workbench.part.WorkbenchPartPresenter.getMenus()方法的一些代码示例,展示了Workbench
我是一名优秀的程序员,十分优秀!