- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.uberfire.client.workbench.part.WorkbenchPartPresenter.getDefinition()
方法的一些代码示例,展示了WorkbenchPartPresenter.getDefinition()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkbenchPartPresenter.getDefinition()
方法的具体详情如下:
包路径:org.uberfire.client.workbench.part.WorkbenchPartPresenter
类名称:WorkbenchPartPresenter
方法名:getDefinition
暂无
代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-patternfly
private WorkbenchPartPresenter getWorkbenchPartPresenter(final PartDefinition part) {
final WorkbenchPartPresenter presenter = mock(WorkbenchPartPresenter.class);
doReturn(part).when(presenter).getDefinition();
return presenter;
}
代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-patternfly
@Override
public void onClick(final ClickEvent event) {
final WorkbenchPartPresenter.View partToDeselect = tabInvertedIndex.get(tab);
panelManager.closePlace(partToDeselect.getPresenter().getDefinition().getPlace());
}
});
代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-bs2
@Override
public void onShow( final ShowEvent e ) {
if ( e.getTarget() == null ) {
return;
}
SelectionEvent.fire( UberTabPanel.this, tabInvertedIndex.get( e.getTarget() ).getPresenter().getDefinition() );
}
} );
代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-patternfly
@Override
public void onShow(TabShowEvent e) {
if (e.getTab() != null) {
final TabPanelEntry selected = tabPanel.findEntryForTabWidget(e.getTab());
BeforeSelectionEvent
.fire(UberTabPanel.this,
tabInvertedIndex.get(selected).getPresenter().getDefinition());
}
}
});
代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-bs2
@Override
public void onShow( final ShownEvent e ) {
onResize();
if ( e.getRelatedTarget() != null ) {
BeforeSelectionEvent.fire( UberTabPanel.this, tabInvertedIndex.get( e.getRelatedTarget() ).getPresenter().getDefinition() );
}
}
} );
代码示例来源:origin: org.uberfire/uberfire-workbench-client
@Test
public void addPartTest() {
WorkbenchPartPresenter part = mock(WorkbenchPartPresenter.class);
when(part.getDefinition()).thenReturn(mock(PartDefinition.class));
presenter.addPart(part);
verify(view).addPart(any());
}
代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-patternfly
@Override
public void onClick(final ClickEvent event) {
if (!hasFocus) {
fireFocusGained();
View view = getSelectedPart();
if (view != null) {
SelectionEvent.fire(UberTabPanel.this,
view.getPresenter().getDefinition());
}
}
}
代码示例来源:origin: org.uberfire/uberfire-workbench-client
@Test
public void addPartTest() {
WorkbenchPartPresenter part = mock(WorkbenchPartPresenter.class);
when(part.getDefinition()).thenReturn(mock(PartDefinition.class));
presenter.addPart(part);
verify(view).addPart(any());
}
代码示例来源:origin: org.uberfire/uberfire-workbench-client
@Test
public void addPartTest() {
WorkbenchPartPresenter part = mock(WorkbenchPartPresenter.class);
when(part.getDefinition()).thenReturn(mock(PartDefinition.class));
presenter.addPart(part);
verify(view).addPart(any());
}
代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-patternfly
public void addPart(final WorkbenchPartPresenter.View view) {
final PartDefinition part = view.getPresenter().getDefinition();
partView.put(part,
view);
buildWidgets(part,
view.getPresenter().getTitle(),
view.getPresenter().getTitleDecoration());
if (partTitles.size() == 1) {
selectPart(part);
}
}
代码示例来源:origin: org.uberfire/uberfire-workbench-client
@Test
public void addPartTest() {
WorkbenchPartPresenter part = mock(WorkbenchPartPresenter.class);
when(part.getDefinition()).thenReturn(mock(PartDefinition.class));
presenter.addPart(part);
verify(view).addPart(any());
}
代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-bs2
@Override
public void onClick( final ClickEvent event ) {
if ( !hasFocus ) {
fireFocusGained();
View view = getSelectedPart();
if ( view != null ) {
SelectionEvent.fire( UberTabPanel.this, view.getPresenter().getDefinition() );
}
}
}
代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-patternfly
@Before
public void setup() {
when(multiScreenViews.get()).thenReturn(multiScreenView);
final WorkbenchPartPresenter presenter = mock(WorkbenchPartPresenter.class);
when(view.getPresenter()).thenReturn(presenter);
when(partDefinition.getParentPanel()).thenReturn(mock(PanelDefinition.class));
when(presenter.getDefinition()).thenReturn(partDefinition);
}
代码示例来源:origin: kiegroup/appformer
@Before
public void setup() {
when(multiScreenViews.get()).thenReturn(multiScreenView);
final WorkbenchPartPresenter presenter = mock(WorkbenchPartPresenter.class);
when(view.getPresenter()).thenReturn(presenter);
when(partDefinition.getParentPanel()).thenReturn(mock(PanelDefinition.class));
when(presenter.getDefinition()).thenReturn(partDefinition);
}
代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-patternfly
@Override
public void onShown(TabShownEvent e) {
onResize();
if (e.getTab() != null) {
final TabPanelEntry selected = tabPanel.findEntryForTabWidget(e.getTab());
SelectionEvent
.fire(UberTabPanel.this,
tabInvertedIndex.get(selected).getPresenter().getDefinition());
}
}
});
代码示例来源:origin: kiegroup/appformer
@Override
public void onShown(TabShownEvent e) {
onResize();
if (e.getTab() != null) {
final TabPanelEntry selected = tabPanel.findEntryForTabWidget(e.getTab());
SelectionEvent
.fire(UberTabPanel.this,
tabInvertedIndex.get(selected).getPresenter().getDefinition());
}
}
});
代码示例来源:origin: org.uberfire/uberfire-workbench-client
@Before
public void setUp() {
when(mockPerspectiveManager.getLivePerspectiveDefinition()).thenReturn(panelManagerPerspectiveDefinition);
panelManagerPerspectiveDefinition.setContextDefinition(perspectiveContextDefinition);
when(mockActivityManager.getActivity(ContextActivity.class,
perspectiveContextDefinition.getPlace())).thenReturn(perspectiveContextActivity);
when(mockPartView.getPresenter()).thenReturn(mockPartPresenter);
when(mockPartPresenter.getDefinition()).thenReturn(partPresenterPartDefinition);
}
代码示例来源:origin: kiegroup/appformer
@Override
public void addPart(final WorkbenchPartPresenter.View view) {
// invoked when this presenter panels within perspectives (not root)
PartDefinition part = view.getPresenter().getDefinition();
if (!partManager.hasPart(part)) {
partManager.registerPart(part,
view.getWrappedWidget().asWidget());
}
}
代码示例来源:origin: org.uberfire/uberfire-workbench-client
@Test
public void addPartTest() {
presenter = new SimpleDnDWorkbenchPanelPresenter(view,
mock(PerspectiveManager.class),
placeManager);
presenter.init();
presenter.setDefinition(new PanelDefinitionImpl());
WorkbenchPartPresenter part = mock(WorkbenchPartPresenter.class);
when(part.getDefinition()).thenReturn(mock(PartDefinition.class));
presenter.addPart(part);
verify(view).addPart(any());
}
代码示例来源:origin: kiegroup/appformer
@Test
public void addPartTest() {
presenter = new SimpleDnDWorkbenchPanelPresenter(view,
mock(PerspectiveManager.class),
placeManager);
presenter.init();
presenter.setDefinition(new PanelDefinitionImpl());
WorkbenchPartPresenter part = mock(WorkbenchPartPresenter.class);
when(part.getDefinition()).thenReturn(mock(PartDefinition.class));
presenter.addPart(part);
verify(view).addPart(any());
}
我正在写一个预加载器: package { import flash.display.DisplayObject; import flash.display.Sprite; i
本文整理了Java中org.uberfire.client.workbench.part.WorkbenchPartPresenter.getDefinition()方法的一些代码示例,展示了Work
有人可以解释一下 AS3 中 getDefinitionByName 和 getDefinition 之间的区别吗? 当我加载外部 SWF 时,我无法使用 getDefinitionByName因为我
在带有段落的 Drupal 8.8.8 上:^1.12,出现此错误: The "paragraph" entity type does not exist. in Drupal\Core\Entity
我正在加载一个外部 SWF 文件并在我的 Flex4.6 中使用 ApplicationDomain.getdefination("Slide1") 使用 AIR 3.2 for iOS 来获取其中的
本文整理了Java中com.evolveum.midpoint.xml.ns._public.common.common_3.XmlSchemaType.getDefinition()方法的一些代码示
我是一名优秀的程序员,十分优秀!