Search in sources :

Example 11 with Perspective

use of org.uberfire.client.annotations.Perspective in project kie-wb-common by kiegroup.

the class HomePerspective method buildPerspective.

@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;
}
Also used : PartDefinitionImpl(org.uberfire.workbench.model.impl.PartDefinitionImpl) PerspectiveDefinitionImpl(org.uberfire.workbench.model.impl.PerspectiveDefinitionImpl) 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 12 with Perspective

use of org.uberfire.client.annotations.Perspective in project kie-wb-common by kiegroup.

the class ServerManagementPerspective method buildPerspective.

@Perspective
public PerspectiveDefinition buildPerspective() {
    final PerspectiveDefinition perspective = new PerspectiveDefinitionImpl(StaticWorkbenchPanelPresenter.class.getName());
    perspective.setName("ServerManagementPerspective");
    perspective.getRoot().addPart(new PartDefinitionImpl(new DefaultPlaceRequest("ServerManagementBrowser")));
    return perspective;
}
Also used : PartDefinitionImpl(org.uberfire.workbench.model.impl.PartDefinitionImpl) PerspectiveDefinitionImpl(org.uberfire.workbench.model.impl.PerspectiveDefinitionImpl) PerspectiveDefinition(org.uberfire.workbench.model.PerspectiveDefinition) StaticWorkbenchPanelPresenter(org.uberfire.client.workbench.panels.impl.StaticWorkbenchPanelPresenter) DefaultPlaceRequest(org.uberfire.mvp.impl.DefaultPlaceRequest) Perspective(org.uberfire.client.annotations.Perspective) WorkbenchPerspective(org.uberfire.client.annotations.WorkbenchPerspective)

Example 13 with Perspective

use of org.uberfire.client.annotations.Perspective in project kie-wb-common by kiegroup.

the class ProvisioningManagementPerspective method buildPerspective.

@Perspective
public PerspectiveDefinition buildPerspective() {
    final PerspectiveDefinition perspective = new PerspectiveDefinitionImpl(StaticWorkbenchPanelPresenter.class.getName());
    perspective.setName(IDENTIFIER);
    perspective.getRoot().addPart(new PartDefinitionImpl(new DefaultPlaceRequest(ProvisioningManagementBrowserPresenter.IDENTIFIER)));
    return perspective;
}
Also used : PartDefinitionImpl(org.uberfire.workbench.model.impl.PartDefinitionImpl) PerspectiveDefinitionImpl(org.uberfire.workbench.model.impl.PerspectiveDefinitionImpl) PerspectiveDefinition(org.uberfire.workbench.model.PerspectiveDefinition) StaticWorkbenchPanelPresenter(org.uberfire.client.workbench.panels.impl.StaticWorkbenchPanelPresenter) DefaultPlaceRequest(org.uberfire.mvp.impl.DefaultPlaceRequest) Perspective(org.uberfire.client.annotations.Perspective) WorkbenchPerspective(org.uberfire.client.annotations.WorkbenchPerspective)

Aggregations

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