use of org.uberfire.mvp.impl.DefaultPlaceRequest in project kie-wb-common by kiegroup.
the class StunnerDocksHandler method provideDocks.
@Override
public Collection<UberfireDock> provideDocks(String perspectiveIdentifier) {
List<UberfireDock> result = new ArrayList<>();
result.add(new UberfireDock(UberfireDockPosition.EAST, "PENCIL_SQUARE_O", new DefaultPlaceRequest("ProjectDiagramPropertiesScreen"), perspectiveIdentifier).withSize(450).withLabel(constants.DocksStunnerPropertiesTitle()));
result.add(new UberfireDock(UberfireDockPosition.EAST, "EYE", new DefaultPlaceRequest("ProjectDiagramExplorerScreen"), perspectiveIdentifier).withSize(450).withLabel(constants.DocksStunnerExplorerTitle()));
return result;
}
use of org.uberfire.mvp.impl.DefaultPlaceRequest in project kie-wb-common by kiegroup.
the class AuthoringPerspective method buildPerspective.
@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;
}
use of org.uberfire.mvp.impl.DefaultPlaceRequest in project kie-wb-common by kiegroup.
the class DiagramsNavigatorScreen method open.
protected void open(final Map<String, String> params, final boolean viewMode) {
PlaceRequest diagramScreenPlaceRequest = new DefaultPlaceRequest(viewMode ? SessionDiagramViewerScreen.SCREEN_ID : SessionDiagramEditorScreen.SCREEN_ID, params);
placeManager.goTo(diagramScreenPlaceRequest);
}
use of org.uberfire.mvp.impl.DefaultPlaceRequest in project kie-wb-common by kiegroup.
the class AuthoringPerspective method buildPerspective.
@Perspective
public PerspectiveDefinition buildPerspective() {
final PerspectiveDefinition perspective = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
perspective.setName("Authoring");
perspective.getRoot().addPart(new PartDefinitionImpl(new DefaultPlaceRequest(DiagramsNavigatorScreen.SCREEN_ID)));
final PanelDefinition 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)));
final PanelDefinition 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)));
final PanelDefinition 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);
final PanelDefinition 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;
}
use of org.uberfire.mvp.impl.DefaultPlaceRequest in project kie-wb-common by kiegroup.
the class DiagramsNavigatorScreen method edit.
private void edit(final Map<String, String> params) {
final PlaceRequest diagramScreenPlaceRequest = new DefaultPlaceRequest(SessionDiagramEditorScreen.SCREEN_ID, params);
placeManager.goTo(diagramScreenPlaceRequest);
}
Aggregations