Search in sources :

Example 1 with PanelDefinition

use of org.uberfire.workbench.model.PanelDefinition 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;
}
Also used : PartDefinitionImpl(org.uberfire.workbench.model.impl.PartDefinitionImpl) PerspectiveDefinitionImpl(org.uberfire.workbench.model.impl.PerspectiveDefinitionImpl) PanelDefinition(org.uberfire.workbench.model.PanelDefinition) PerspectiveDefinition(org.uberfire.workbench.model.PerspectiveDefinition) PanelDefinitionImpl(org.uberfire.workbench.model.impl.PanelDefinitionImpl) DefaultPlaceRequest(org.uberfire.mvp.impl.DefaultPlaceRequest) MultiListWorkbenchPanelPresenter(org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter) Perspective(org.uberfire.client.annotations.Perspective) WorkbenchPerspective(org.uberfire.client.annotations.WorkbenchPerspective)

Example 2 with PanelDefinition

use of org.uberfire.workbench.model.PanelDefinition in project kie-wb-common by kiegroup.

the class SocialHomePagePerspective method buildPerspective.

@Perspective
public PerspectiveDefinition buildPerspective() {
    final PerspectiveDefinition p = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
    p.setName("Social Home Page Perspective");
    final PanelDefinition west = new PanelDefinitionImpl(SimpleWorkbenchPanelPresenter.class.getName());
    west.setWidth(450);
    west.setMinWidth(450);
    west.addPart(new PartDefinitionImpl(new DefaultPlaceRequest("SocialHomePageSidePresenter")));
    p.getRoot().addPart(new PartDefinitionImpl(new DefaultPlaceRequest("SocialHomePageMainPresenter")));
    p.getRoot().insertChild(CompassPosition.WEST, west);
    return p;
}
Also used : SimpleWorkbenchPanelPresenter(org.uberfire.client.workbench.panels.impl.SimpleWorkbenchPanelPresenter) PartDefinitionImpl(org.uberfire.workbench.model.impl.PartDefinitionImpl) PerspectiveDefinitionImpl(org.uberfire.workbench.model.impl.PerspectiveDefinitionImpl) PanelDefinition(org.uberfire.workbench.model.PanelDefinition) PerspectiveDefinition(org.uberfire.workbench.model.PerspectiveDefinition) PanelDefinitionImpl(org.uberfire.workbench.model.impl.PanelDefinitionImpl) DefaultPlaceRequest(org.uberfire.mvp.impl.DefaultPlaceRequest) MultiListWorkbenchPanelPresenter(org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter) Perspective(org.uberfire.client.annotations.Perspective) WorkbenchPerspective(org.uberfire.client.annotations.WorkbenchPerspective)

Example 3 with PanelDefinition

use of org.uberfire.workbench.model.PanelDefinition in project kie-wb-common by kiegroup.

the class UserHomePagePerspective method buildPerspective.

@Perspective
public PerspectiveDefinition buildPerspective() {
    final PerspectiveDefinition p = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
    p.setName(Constants.INSTANCE.PeoplePerspective());
    final PanelDefinition west = new PanelDefinitionImpl(SimpleWorkbenchPanelPresenter.class.getName());
    west.setWidth(350);
    west.setMinWidth(350);
    west.addPart(new PartDefinitionImpl(new DefaultPlaceRequest("UserHomePageSidePresenter")));
    p.getRoot().addPart(new PartDefinitionImpl(new DefaultPlaceRequest("UserHomePageMainPresenter")));
    p.getRoot().insertChild(CompassPosition.WEST, west);
    return p;
}
Also used : SimpleWorkbenchPanelPresenter(org.uberfire.client.workbench.panels.impl.SimpleWorkbenchPanelPresenter) PartDefinitionImpl(org.uberfire.workbench.model.impl.PartDefinitionImpl) PerspectiveDefinitionImpl(org.uberfire.workbench.model.impl.PerspectiveDefinitionImpl) PanelDefinition(org.uberfire.workbench.model.PanelDefinition) PerspectiveDefinition(org.uberfire.workbench.model.PerspectiveDefinition) PanelDefinitionImpl(org.uberfire.workbench.model.impl.PanelDefinitionImpl) DefaultPlaceRequest(org.uberfire.mvp.impl.DefaultPlaceRequest) MultiListWorkbenchPanelPresenter(org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter) Perspective(org.uberfire.client.annotations.Perspective) WorkbenchPerspective(org.uberfire.client.annotations.WorkbenchPerspective)

Example 4 with PanelDefinition

use of org.uberfire.workbench.model.PanelDefinition in project kie-wb-common by kiegroup.

the class DataSourceManagementPerspective method buildPerspective.

@Perspective
public PerspectiveDefinition buildPerspective() {
    PerspectiveDefinition perspective = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
    perspective.setName("Data Source Authoring");
    final PanelDefinition west = new PanelDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName());
    west.setWidth(400);
    west.setMinWidth(300);
    west.addPart(new PartDefinitionImpl(new DefaultPlaceRequest(DataSourceDefExplorerScreen.SCREEN_ID)));
    perspective.getRoot().insertChild(CompassPosition.WEST, west);
    return perspective;
}
Also used : PartDefinitionImpl(org.uberfire.workbench.model.impl.PartDefinitionImpl) PerspectiveDefinitionImpl(org.uberfire.workbench.model.impl.PerspectiveDefinitionImpl) PanelDefinition(org.uberfire.workbench.model.PanelDefinition) PerspectiveDefinition(org.uberfire.workbench.model.PerspectiveDefinition) PanelDefinitionImpl(org.uberfire.workbench.model.impl.PanelDefinitionImpl) DefaultPlaceRequest(org.uberfire.mvp.impl.DefaultPlaceRequest) MultiListWorkbenchPanelPresenter(org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter) Perspective(org.uberfire.client.annotations.Perspective) WorkbenchPerspective(org.uberfire.client.annotations.WorkbenchPerspective)

Example 5 with PanelDefinition

use of org.uberfire.workbench.model.PanelDefinition in project kie-wb-common by kiegroup.

the class AdministrationPerspective method buildPerspective.

@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;
}
Also used : PartDefinitionImpl(org.uberfire.workbench.model.impl.PartDefinitionImpl) SimpleWorkbenchPanelPresenter(org.uberfire.client.workbench.panels.impl.SimpleWorkbenchPanelPresenter) PerspectiveDefinitionImpl(org.uberfire.workbench.model.impl.PerspectiveDefinitionImpl) PanelDefinition(org.uberfire.workbench.model.PanelDefinition) PerspectiveDefinition(org.uberfire.workbench.model.PerspectiveDefinition) PanelDefinitionImpl(org.uberfire.workbench.model.impl.PanelDefinitionImpl) DefaultPlaceRequest(org.uberfire.mvp.impl.DefaultPlaceRequest) MultiListWorkbenchPanelPresenter(org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter) Perspective(org.uberfire.client.annotations.Perspective) WorkbenchPerspective(org.uberfire.client.annotations.WorkbenchPerspective)

Aggregations

Perspective (org.uberfire.client.annotations.Perspective)5 WorkbenchPerspective (org.uberfire.client.annotations.WorkbenchPerspective)5 MultiListWorkbenchPanelPresenter (org.uberfire.client.workbench.panels.impl.MultiListWorkbenchPanelPresenter)5 DefaultPlaceRequest (org.uberfire.mvp.impl.DefaultPlaceRequest)5 PanelDefinition (org.uberfire.workbench.model.PanelDefinition)5 PerspectiveDefinition (org.uberfire.workbench.model.PerspectiveDefinition)5 PanelDefinitionImpl (org.uberfire.workbench.model.impl.PanelDefinitionImpl)5 PartDefinitionImpl (org.uberfire.workbench.model.impl.PartDefinitionImpl)5 PerspectiveDefinitionImpl (org.uberfire.workbench.model.impl.PerspectiveDefinitionImpl)5 SimpleWorkbenchPanelPresenter (org.uberfire.client.workbench.panels.impl.SimpleWorkbenchPanelPresenter)3