本文整理汇总了Java中org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter类的典型用法代码示例。如果您正苦于以下问题:Java MultiListWorkbenchPanelPresenter类的具体用法?Java MultiListWorkbenchPanelPresenter怎么用?Java MultiListWorkbenchPanelPresenter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MultiListWorkbenchPanelPresenter类属于org.uberfire.client.workbench.panels.impl包,在下文中一共展示了MultiListWorkbenchPanelPresenter类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: buildPerspective
import org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter; //导入依赖的package包/类
@Perspective
public PerspectiveDefinition buildPerspective() {
final PerspectiveDefinition perspective = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
perspective.setName(translationService.getTranslation(AppConstants.AdministrationPerspective_AdministrationPerspective));
perspective.getRoot().addPart(new PartDefinitionImpl(new DefaultPlaceRequest("RepositoriesEditor")));
final PanelDefinition west = new PanelDefinitionImpl(SimpleWorkbenchPanelPresenter.class.getName());
west.setWidth(300);
west.setMinWidth(200);
west.addPart(new PartDefinitionImpl(new DefaultPlaceRequest("FileExplorer")));
perspective.getRoot().insertChild(CompassPosition.WEST,
west);
return perspective;
}
开发者ID:kiegroup,项目名称:optaplanner-wb,代码行数:18,代码来源:AdministrationPerspective.java
示例2: shouldSaveNonTransientPerspectives
import org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter; //导入依赖的package包/类
@Test
public void shouldSaveNonTransientPerspectives() throws Exception {
PerspectiveDefinition kansasDefinition = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
PerspectiveActivity kansas = mock(PerspectiveActivity.class);
when(kansas.getDefaultPerspectiveLayout()).thenReturn(kansasDefinition);
when(kansas.getIdentifier()).thenReturn("kansas_perspective");
when(kansas.isTransient()).thenReturn(false);
perspectiveManager.switchToPerspective(pr,
kansas,
doWhenFinished);
perspectiveManager.savePerspectiveState(doWhenFinishedSave);
verify(wbServices).save(eq("kansas_perspective"),
eq(kansasDefinition),
eq(doWhenFinishedSave));
}
开发者ID:kiegroup,项目名称:appformer,代码行数:19,代码来源:PerspectiveManagerTest.java
示例3: shouldNotSaveTransientPerspectives
import org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter; //导入依赖的package包/类
@Test
public void shouldNotSaveTransientPerspectives() throws Exception {
PerspectiveDefinition kansasDefinition = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
PerspectiveActivity kansas = mock(PerspectiveActivity.class);
when(kansas.getDefaultPerspectiveLayout()).thenReturn(kansasDefinition);
when(kansas.getIdentifier()).thenReturn("kansas_perspective");
when(kansas.isTransient()).thenReturn(true);
perspectiveManager.switchToPerspective(pr,
kansas,
doWhenFinished);
perspectiveManager.savePerspectiveState(doWhenFinishedSave);
verify(wbServices,
never()).save(any(String.class),
eq(kansasDefinition),
any(Command.class));
}
开发者ID:kiegroup,项目名称:appformer,代码行数:20,代码来源:PerspectiveManagerTest.java
示例4: getDefaultPerspectiveLayout
import org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter; //导入依赖的package包/类
@Override
public PerspectiveDefinition getDefaultPerspectiveLayout() {
PerspectiveDefinition pd = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
pd.getRoot().setElementId("DragAndDropPerspective-list");
pd.getRoot().addPart(DragAndDropScreen.class.getName() + "?debugId=1");
pd.getRoot().addPart(DragAndDropScreen.class.getName() + "?debugId=2");
PanelDefinitionImpl tabPanel = new PanelDefinitionImpl(MultiTabWorkbenchPanelPresenter.class.getName());
tabPanel.setElementId("DragAndDropPerspective-tab");
tabPanel.setWidth(300);
tabPanel.addPart(DragAndDropScreen.class.getName() + "?debugId=3");
tabPanel.addPart(DragAndDropScreen.class.getName() + "?debugId=4");
pd.getRoot().appendChild(CompassPosition.WEST,
tabPanel);
PanelDefinitionImpl simplePanel = new PanelDefinitionImpl(SimpleDnDWorkbenchPanelPresenter.class.getName());
simplePanel.setWidth(175);
simplePanel.setElementId("DragAndDropPerspective-simple");
simplePanel.addPart(DragAndDropScreen.class.getName() + "?debugId=5");
pd.getRoot().appendChild(CompassPosition.EAST,
simplePanel);
return pd;
}
开发者ID:kiegroup,项目名称:appformer,代码行数:25,代码来源:DragAndDropPerspective.java
示例5: getDefaultPerspectiveLayout
import org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter; //导入依赖的package包/类
@Override
public PerspectiveDefinition getDefaultPerspectiveLayout() {
PerspectiveDefinition pd = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
pd.getRoot().setElementId(LIST_PANEL_ID);
pd.getRoot().addPart(MaximizeTestScreen.class.getName() + "?debugId=1");
pd.getRoot().addPart(MaximizeTestScreen.class.getName() + "?debugId=2");
PanelDefinitionImpl simplePanel = new PanelDefinitionImpl(SimpleDnDWorkbenchPanelPresenter.class.getName());
simplePanel.setHeight(200);
simplePanel.setElementId(SIMPLE_PANEL_ID);
simplePanel.addPart(MaximizeTestScreen.class.getName() + "?debugId=5");
pd.getRoot().appendChild(CompassPosition.SOUTH,
simplePanel);
PanelDefinitionImpl tabPanel = new PanelDefinitionImpl(MultiTabWorkbenchPanelPresenter.class.getName());
tabPanel.setElementId(TAB_PANEL_ID);
tabPanel.setWidth(300);
tabPanel.addPart(MaximizeTestScreen.class.getName() + "?debugId=3");
tabPanel.addPart(MaximizeTestScreen.class.getName() + "?debugId=4");
pd.getRoot().appendChild(CompassPosition.WEST,
tabPanel);
return pd;
}
开发者ID:kiegroup,项目名称:appformer,代码行数:25,代码来源:MaximizeTestPerspective.java
示例6: testListPerspectiveSizeWithNestedPanels
import org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter; //导入依赖的package包/类
@Test
public void testListPerspectiveSizeWithNestedPanels() throws Exception {
driver.get(baseUrl + "#" + ListPerspectiveActivity.class.getName());
ResizeWidgetWrapper widgetWrapper = new ResizeWidgetWrapper(driver,
"listPerspectiveDefault");
TopHeaderWrapper topHeaderWrapper = new TopHeaderWrapper(driver);
topHeaderWrapper.addPanelToRoot(CompassPosition.WEST,
MultiListWorkbenchPanelPresenter.class,
ResizeTestScreenActivity.class,
"id",
"resize1");
Dimension sizeAfterWestPanelAdded = widgetWrapper.getActualSize();
topHeaderWrapper.addPanelToRoot(CompassPosition.EAST,
MultiListWorkbenchPanelPresenter.class,
ResizeTestScreenActivity.class,
"id",
"resize2");
Dimension sizeAfterBothPanelsAdded = widgetWrapper.getActualSize();
assertTrue(sizeAfterWestPanelAdded.width < WINDOW_WIDTH);
assertTrue(sizeAfterBothPanelsAdded.width < sizeAfterWestPanelAdded.width);
}
开发者ID:kiegroup,项目名称:appformer,代码行数:26,代码来源:WorkbenchResizeTest.java
示例7: getPerspective
import org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter; //导入依赖的package包/类
@Perspective
public PerspectiveDefinition getPerspective() {
final PerspectiveDefinition perspective = new PerspectiveDefinitionImpl( MultiListWorkbenchPanelPresenter.class.getName() );
perspective.setName( constants.administration() );
perspective.getRoot().addPart( new PartDefinitionImpl( new DefaultPlaceRequest( "RepositoriesEditor" ) ) );
final PanelDefinition west = new PanelDefinitionImpl( SimpleWorkbenchPanelPresenter.class.getName() );
west.setWidth( 300 );
west.setMinWidth( 200 );
west.addPart( new PartDefinitionImpl( new DefaultPlaceRequest( "FileExplorer" ) ) );
perspective.getRoot().insertChild( CompassPosition.WEST, west );
return perspective;
}
开发者ID:kiegroup,项目名称:kie-wb-distributions,代码行数:17,代码来源:AdministrationPerspective.java
示例8: getPerspective
import org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter; //导入依赖的package包/类
@Perspective
public PerspectiveDefinition getPerspective() {
final PerspectiveDefinition perspective = new PerspectiveDefinitionImpl( MultiListWorkbenchPanelPresenter.class.getName() );
perspective.setName( constants.Administration() );
perspective.getRoot().addPart( new PartDefinitionImpl( new DefaultPlaceRequest( "RepositoriesEditor" ) ) );
final PanelDefinition west = new PanelDefinitionImpl( SimpleWorkbenchPanelPresenter.class.getName() );
west.setWidth( 300 );
west.setMinWidth( 200 );
west.addPart( new PartDefinitionImpl( new DefaultPlaceRequest( "FileExplorer" ) ) );
perspective.getRoot().insertChild( CompassPosition.WEST, west );
return perspective;
}
开发者ID:kiegroup,项目名称:kie-wb-distributions,代码行数:17,代码来源:AdministrationPerspective.java
示例9: buildPerspective
import org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter; //导入依赖的package包/类
@Perspective
public PerspectiveDefinition buildPerspective() {
final PerspectiveDefinition perspective = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
perspective.setName(AppConstants.INSTANCE.AdministrationPerspectiveName());
perspective.getRoot().addPart(new PartDefinitionImpl(new DefaultPlaceRequest("RepositoriesEditor")));
final PanelDefinition west = new PanelDefinitionImpl(SimpleWorkbenchPanelPresenter.class.getName());
west.setWidth(300);
west.setMinWidth(200);
west.addPart(new PartDefinitionImpl(new DefaultPlaceRequest("FileExplorer")));
perspective.getRoot().insertChild(CompassPosition.WEST,
west);
return perspective;
}
开发者ID:kiegroup,项目名称:drools-wb,代码行数:18,代码来源:AdministrationPerspective.java
示例10: buildPerspective
import org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter; //导入依赖的package包/类
@Perspective
public PerspectiveDefinition buildPerspective() {
final PerspectiveDefinition p = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
p.setName("Simple Perspective No Context");
p.getRoot().addPart("welcome");
return p;
}
开发者ID:kiegroup,项目名称:appformer,代码行数:8,代码来源:SimplePerspectiveNoContext.java
示例11: buildPerspective
import org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter; //导入依赖的package包/类
@Perspective
public PerspectiveDefinition buildPerspective() {
PerspectiveDefinition perspective = new PerspectiveDefinitionImpl(SimpleWorkbenchPanelPresenter.class.getName());
perspective.setName(WIRES);
perspective.getRoot().addPart(new PartDefinitionImpl(new DefaultPlaceRequest(BAYESIAN_SCREEN)));
final PanelDefinition layersPanel = new PanelDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
layersPanel.setMinWidth(MIN_WIDTH_PANEL);
layersPanel.setWidth(WIDTH_PANEL);
layersPanel.addPart(new PartDefinitionImpl(new DefaultPlaceRequest(WIRES_LAYERS_SCREEN)));
final PanelDefinition templatesPanel = new PanelDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
templatesPanel.setMinWidth(MIN_WIDTH_PANEL);
templatesPanel.setWidth(WIDTH_PANEL);
templatesPanel.addPart(new PartDefinitionImpl(new DefaultPlaceRequest(WIRES_TEMPLATE_SCREEN)));
layersPanel.appendChild(CompassPosition.SOUTH,
templatesPanel);
perspective.getRoot().insertChild(CompassPosition.EAST,
layersPanel);
final PanelDefinition variablesPanel = new PanelDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
variablesPanel.setMinWidth(MIN_WIDTH_PANEL);
variablesPanel.setWidth(WIDTH_PANEL);
variablesPanel.addPart(new PartDefinitionImpl(new DefaultPlaceRequest(BAYESIAN_VARIABLES_SCREEN)));
perspective.getRoot().insertChild(CompassPosition.SOUTH,
variablesPanel);
return perspective;
}
开发者ID:kiegroup,项目名称:appformer,代码行数:34,代码来源:WiresBayesianPerspective.java
示例12: buildPerspective
import org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter; //导入依赖的package包/类
@Perspective
public PerspectiveDefinition buildPerspective() {
PerspectiveDefinition perspective = new PerspectiveDefinitionImpl(SimpleWorkbenchPanelPresenter.class.getName());
perspective.setName(WIRES);
perspective.getRoot().addPart(new PartDefinitionImpl(new DefaultPlaceRequest(WIRES_CANVAS_SCREEN)));
final PanelDefinition palettePanel = new PanelDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
palettePanel.setMinWidth(MIN_WIDTH_PANEL);
palettePanel.setWidth(WIDTH_PANEL);
palettePanel.addPart(new PartDefinitionImpl(new DefaultPlaceRequest(WIRES_PALETTE_SCREEN)));
final PanelDefinition propertiesPanel = new PanelDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
propertiesPanel.setMinWidth(MIN_WIDTH_PANEL);
propertiesPanel.setWidth(WIDTH_PANEL);
propertiesPanel.addPart(new PartDefinitionImpl(new DefaultPlaceRequest(WIRES_PROPERTIES_SCREEN)));
palettePanel.appendChild(CompassPosition.SOUTH,
propertiesPanel);
perspective.getRoot().insertChild(CompassPosition.WEST,
palettePanel);
final PanelDefinition layersPanel = new PanelDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
layersPanel.setMinWidth(MIN_WIDTH_PANEL);
layersPanel.setWidth(WIDTH_PANEL);
layersPanel.addPart(new PartDefinitionImpl(new DefaultPlaceRequest(WIRES_LAYERS_SCREEN)));
perspective.getRoot().insertChild(CompassPosition.EAST,
layersPanel);
return perspective;
}
开发者ID:kiegroup,项目名称:appformer,代码行数:33,代码来源:WiresTreesPerspective.java
示例13: buildPerspective
import org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter; //导入依赖的package包/类
private PerspectiveDefinition buildPerspective() {
final PerspectiveDefinitionImpl perspective = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
perspective.setName(BpmnEditorConstants.INSTANCE.bpmnPerspectiveTitle());
final PanelDefinition west = new PanelDefinitionImpl(SimpleWorkbenchPanelPresenter.class.getName());
west.setWidth(300);
west.setMinWidth(200);
west.addPart(new PartDefinitionImpl(new DefaultPlaceRequest("BPMN Explorer")));
perspective.getRoot().insertChild(CompassPosition.WEST,
west);
return perspective;
}
开发者ID:kiegroup,项目名称:appformer,代码行数:15,代码来源:BpmnPerspective.java
示例14: shouldDestroyAllOldPanelsWhenSwitchingRoot
import org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter; //导入依赖的package包/类
@Test
public void shouldDestroyAllOldPanelsWhenSwitchingRoot() throws Exception {
PerspectiveDefinition fooPerspectiveDef = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
PanelDefinition rootPanel = fooPerspectiveDef.getRoot();
PanelDefinition fooPanel = new PanelDefinitionImpl(SimpleWorkbenchPanelPresenter.class.getName());
PanelDefinition fooChildPanel = new PanelDefinitionImpl(SimpleWorkbenchPanelPresenter.class.getName());
PanelDefinition barPanel = new PanelDefinitionImpl(SimpleWorkbenchPanelPresenter.class.getName());
PanelDefinition bazPanel = new PanelDefinitionImpl(SimpleWorkbenchPanelPresenter.class.getName());
rootPanel.appendChild(fooPanel);
rootPanel.appendChild(barPanel);
rootPanel.appendChild(bazPanel);
fooPanel.appendChild(fooChildPanel);
PerspectiveActivity fooPerspective = mock(PerspectiveActivity.class);
when(fooPerspective.getDefaultPerspectiveLayout()).thenReturn(fooPerspectiveDef);
when(fooPerspective.isTransient()).thenReturn(true);
perspectiveManager.switchToPerspective(pr,
fooPerspective,
doWhenFinished);
perspectiveManager.switchToPerspective(pr,
oz,
doWhenFinished);
verify(panelManager).removeWorkbenchPanel(fooPanel);
verify(panelManager).removeWorkbenchPanel(fooChildPanel);
verify(panelManager).removeWorkbenchPanel(barPanel);
verify(panelManager).removeWorkbenchPanel(bazPanel);
verify(panelManager,
never()).removeWorkbenchPanel(rootPanel);
}
开发者ID:kiegroup,项目名称:appformer,代码行数:34,代码来源:PerspectiveManagerTest.java
示例15: getDefaultPerspectiveLayout
import org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter; //导入依赖的package包/类
@Override
public PerspectiveDefinition getDefaultPerspectiveLayout() {
PerspectiveDefinition pdef = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
pdef.setName("ListPerspectiveActivity");
DefaultPlaceRequest destintationPlace = new DefaultPlaceRequest(ResizeTestScreenActivity.class.getName());
destintationPlace.addParameter("debugId",
"listPerspectiveDefault");
pdef.getRoot().addPart(new PartDefinitionImpl(destintationPlace));
return pdef;
}
开发者ID:kiegroup,项目名称:appformer,代码行数:12,代码来源:ListPerspectiveActivity.java
示例16: getDefaultPerspectiveLayout
import org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter; //导入依赖的package包/类
@Override
public PerspectiveDefinition getDefaultPerspectiveLayout() {
PerspectiveDefinition pdef = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
pdef.setName("BreakablePerspective");
pdef.getRoot().addPart(BreakableMenuScreen.class.getName());
return pdef;
}
开发者ID:kiegroup,项目名称:appformer,代码行数:8,代码来源:BreakablePerspective.java
示例17: buildPerspective
import org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter; //导入依赖的package包/类
@Perspective
public PerspectiveDefinition buildPerspective() {
PerspectiveDefinition perspective = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
perspective.setName("Data Set Authoring");
perspective.getRoot().addPart(new PartDefinitionImpl(new DefaultPlaceRequest("DataSetAuthoringHome")));
final PanelDefinition west = new PanelDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
west.setWidth(350);
west.setMinWidth(300);
west.addPart(new PartDefinitionImpl(new DefaultPlaceRequest("DataSetDefExplorer")));
perspective.getRoot().insertChild( CompassPosition.WEST, west );
return perspective;
}
开发者ID:kiegroup,项目名称:appformer,代码行数:15,代码来源:DataSetAuthoringPerspective.java
示例18: buildPerspective
import org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter; //导入依赖的package包/类
private PerspectiveDefinition buildPerspective() {
PerspectiveDefinition perspective = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
perspective.setName(ContentManagerConstants.INSTANCE.contentManagerHome());
perspective.getRoot().addPart(ContentManagerHomeScreen.SCREEN_ID);
final PanelDefinition west = new PanelDefinitionImpl(StaticWorkbenchPanelPresenter.class.getName());
west.setWidth(330);
west.setMinWidth(330);
west.addPart(ContentExplorerScreen.SCREEN_ID);
perspective.getRoot().insertChild(CompassPosition.WEST, west);
return perspective;
}
开发者ID:kiegroup,项目名称:appformer,代码行数:12,代码来源:ContentManagerPerspective.java
示例19: getPerspective
import org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter; //导入依赖的package包/类
@Perspective
public PerspectiveDefinition getPerspective() {
final PerspectiveDefinition perspective = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
perspective.setName("Asset Management");
perspective.getRoot().addPart(new PartDefinitionImpl(new DefaultPlaceRequest("Repository Configuration")));
return perspective;
}
开发者ID:kiegroup,项目名称:appformer,代码行数:10,代码来源:BaseAssetPerspective.java
示例20: buildPerspective
import org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter; //导入依赖的package包/类
@Perspective
public PerspectiveDefinition buildPerspective() {
final PerspectiveDefinition p = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
p.setName("MainPerspective");
p.getRoot().addPart(new PartDefinitionImpl(new DefaultPlaceRequest("ComponentPresenter")));
p.getRoot().addPart(new PartDefinitionImpl(new DefaultPlaceRequest("HelloWorldScreen")));
return p;
}
开发者ID:kiegroup,项目名称:appformer,代码行数:11,代码来源:MainPerspective.java
注:本文中的org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论