本文整理汇总了Java中org.uberfire.workbench.model.impl.PanelDefinitionImpl.addPart方法的典型用法代码示例。如果您正苦于以下问题:Java PanelDefinitionImpl.addPart方法的具体用法?Java PanelDefinitionImpl.addPart怎么用?Java PanelDefinitionImpl.addPart使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.uberfire.workbench.model.impl.PanelDefinitionImpl
的用法示例。
在下文中一共展示了PanelDefinitionImpl.addPart方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getDefaultPerspectiveLayout
import org.uberfire.workbench.model.impl.PanelDefinitionImpl; //导入方法依赖的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;
}
示例2: getDefaultPerspectiveLayout
import org.uberfire.workbench.model.impl.PanelDefinitionImpl; //导入方法依赖的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;
}
示例3: buildPerspective
import org.uberfire.workbench.model.impl.PanelDefinitionImpl; //导入方法依赖的package包/类
@Perspective
public PerspectiveDefinition buildPerspective() {
PerspectiveDefinition perspective = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
perspective.setName("Authoring");
perspective.getRoot().addPart(new PartDefinitionImpl(new DefaultPlaceRequest(DiagramsNavigatorScreen.SCREEN_ID)));
treeExplorerPanel = new PanelDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
treeExplorerPanel.setWidth(EAST_PANEL_WIDTH);
treeExplorerPanel.setHeight(EAST_PANEL_HEIGHT);
treeExplorerPanel.addPart(new PartDefinitionImpl(new DefaultPlaceRequest(SessionTreeExplorerScreen.SCREEN_ID)));
previewPanel = new PanelDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
previewPanel.setWidth(EAST_PANEL_WIDTH);
previewPanel.setHeight(EAST_PANEL_HEIGHT);
previewPanel.addPart(new PartDefinitionImpl(new DefaultPlaceRequest(SessionDiagramPreviewScreen.SCREEN_ID)));
propertiesPanel = new PanelDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
propertiesPanel.setWidth(EAST_PANEL_WIDTH);
propertiesPanel.setHeight(EAST_PANEL_HEIGHT);
propertiesPanel.addPart(new PartDefinitionImpl(new DefaultPlaceRequest(SessionPropertiesScreen.SCREEN_ID)));
propertiesPanel.appendChild(CompassPosition.NORTH,
previewPanel);
propertiesPanel.appendChild(CompassPosition.SOUTH,
treeExplorerPanel);
notificationsPanel = new PanelDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
notificationsPanel.setWidth(400);
notificationsPanel.setHeight(100);
notificationsPanel.addPart(new PartDefinitionImpl(new DefaultPlaceRequest(NotificationsScreen.SCREEN_ID)));
perspective.getRoot().insertChild(CompassPosition.EAST,
propertiesPanel);
perspective.getRoot().insertChild(CompassPosition.SOUTH,
notificationsPanel);
return perspective;
}
示例4: buildPerspective
import org.uberfire.workbench.model.impl.PanelDefinitionImpl; //导入方法依赖的package包/类
@Perspective
public PerspectiveDefinition buildPerspective() {
PerspectiveDefinition perspective = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
perspective.setName("Home");
perspective.getRoot().addPart(new PartDefinitionImpl(new DefaultPlaceRequest(DiagramPresenterScreen.SCREEN_ID)));
welcomePanel = new PanelDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
welcomePanel.setMinHeight(100);
welcomePanel.setHeight(100);
welcomePanel.addPart(new PartDefinitionImpl(new DefaultPlaceRequest(WelcomeScreen.SCREEN_ID)));
perspective.getRoot().insertChild(CompassPosition.NORTH,
welcomePanel);
return perspective;
}
示例5: getPerspective
import org.uberfire.workbench.model.impl.PanelDefinitionImpl; //导入方法依赖的package包/类
@Perspective
public PerspectiveDefinition getPerspective() {
PerspectiveDefinitionImpl perspective = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
perspective.setName("Administration");
notificationsPanel = new PanelDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
notificationsPanel.addPart(new PartDefinitionImpl(new DefaultPlaceRequest("org.kie.workbench.common.screens.messageconsole.MessageConsole")));
perspective.getRoot().insertChild(CompassPosition.SOUTH,
notificationsPanel);
return perspective;
}