Examples of PerspectiveDefinitionImpl


Examples of org.uberfire.workbench.model.impl.PerspectiveDefinitionImpl

@WorkbenchPerspective(identifier = "MainPerspective", isDefault = true)
public class MainPerspective {

    @Perspective
    public PerspectiveDefinition buildPerspective() {
        PerspectiveDefinition perspective = new PerspectiveDefinitionImpl( PanelType.ROOT_STATIC);
        perspective.setTransient(true);
        perspective.setName("MainPerspective");
        //perspective.getRoot().addPart(new PartDefinitionImpl(new DefaultPlaceRequest("HomeScreen")));
        perspective.getRoot().addPart( new PartDefinitionImpl( new DefaultPlaceRequest( "GalleryScreen" ) ) );
        //perspective.getRoot().addPart( new PartDefinitionImpl( new DefaultPlaceRequest( "StaticChartScreen" ) ) );
        //perspective.getRoot().addPart( new PartDefinitionImpl( new DefaultPlaceRequest( "DisplayerScreen" ).addParameter("uuid", "opps-country-summary") ) );
        return perspective;
    }
View Full Code Here

Examples of org.uberfire.workbench.model.impl.PerspectiveDefinitionImpl

                             "1" );*/
/*        final PlaceRequest place2 = new DefaultPlaceRequest( "M2RepoEditor" );
        place2.addParameter( "instance",
                             "2" );*/

        this.perspective = new PerspectiveDefinitionImpl();
        this.perspective.setName( "Guvnor M2 Repository Explorer" );

        this.perspective.getRoot().addPart( new PartDefinitionImpl( new DefaultPlaceRequest( "M2RepoEditor" ) ) );

        final PanelDefinition west = new PanelDefinitionImpl();
View Full Code Here

Examples of org.uberfire.workbench.model.impl.PerspectiveDefinitionImpl

        };

    }

    private void buildPerspective() {
        this.perspective = new PerspectiveDefinitionImpl( PanelType.ROOT_LIST );
        this.perspective.setName( AppConstants.INSTANCE.AdministrationPerspectiveName() );

        this.perspective.getRoot().addPart( new PartDefinitionImpl( new DefaultPlaceRequest( "RepositoriesEditor" ) ) );

        final PanelDefinition west = new PanelDefinitionImpl( PanelType.SIMPLE );
View Full Code Here

Examples of org.uberfire.workbench.model.impl.PerspectiveDefinitionImpl

    @Perspective
    public PerspectiveDefinition getPerspective() {
        //UberFire's AbstractPanelManagerImpl performs destructive operations on a PerspectiveDefinition's Panels collection.
        //Therefore create a new instance of the perspective definition each time the definition is requested. Perspectives
        //that are not transient are not affected by the destructive operations as their definition is re-created when loaded.
        final PerspectiveDefinition perspective = new PerspectiveDefinitionImpl( PanelType.ROOT_STATIC );
        perspective.getRoot().addPart( new PartDefinitionImpl( new DefaultPlaceRequest( "M2RepoEditor" ) ) );
        perspective.setName( "M2 Repository Explorer" );
        perspective.setTransient( true );

        return perspective;
    }
View Full Code Here

Examples of org.uberfire.workbench.model.impl.PerspectiveDefinitionImpl

        };

    }

    private void buildPerspective() {
        this.perspective = new PerspectiveDefinitionImpl( PanelType.ROOT_LIST );
        this.perspective.setName( AppConstants.INSTANCE.AdministrationPerspectiveName() );

        this.perspective.getRoot().addPart( new PartDefinitionImpl( new DefaultPlaceRequest( "RepositoriesEditor" ) ) );

        final PanelDefinition west = new PanelDefinitionImpl( PanelType.MULTI_LIST );
View Full Code Here

Examples of org.uberfire.workbench.model.impl.PerspectiveDefinitionImpl

    public ToolBar getToolBar() {
        return this.toolBar;
    }

    private void buildPerspective() {
        this.perspective = new PerspectiveDefinitionImpl( PanelType.ROOT_LIST );
        this.perspective.setName( "Author" );

        final PanelDefinition west = new PanelDefinitionImpl( PanelType.MULTI_LIST );
        west.setWidth( 300 );
        west.setMinWidth( 200 );
View Full Code Here

Examples of org.uberfire.workbench.model.impl.PerspectiveDefinitionImpl

        buildPerspective();
        buildMenuBar();
    }

    private void buildPerspective() {
        this.perspective = new PerspectiveDefinitionImpl( PanelType.ROOT_STATIC );
        this.perspective.setTransient( true );
        this.perspective.setName( "M2 Repository Explorer" );

        this.perspective.getRoot().addPart( new PartDefinitionImpl( new DefaultPlaceRequest( "M2RepoEditor" ) ) );
    }
View Full Code Here

Examples of org.uberfire.workbench.model.impl.PerspectiveDefinitionImpl

    public ToolBar getToolBar() {
        return this.toolBar;
    }

    private void buildPerspective() {
        this.perspective = new PerspectiveDefinitionImpl( PanelType.ROOT_LIST );
        this.perspective.setName( "Author" );

        final PanelDefinition west = new PanelDefinitionImpl( PanelType.SIMPLE );
        west.setWidth( 400 );
        west.setMinWidth( 350 );
View Full Code Here

Examples of org.uberfire.workbench.model.impl.PerspectiveDefinitionImpl

        buildPerspective();
        buildMenuBar();
    }

    private void buildPerspective() {
        this.perspective = new PerspectiveDefinitionImpl( PanelType.ROOT_STATIC );
        this.perspective.setTransient( true );
        this.perspective.setName( "M2 Repository Explorer" );

        this.perspective.getRoot().addPart( new PartDefinitionImpl( new DefaultPlaceRequest( "M2RepoEditor" ) ) );
    }
View Full Code Here

Examples of org.uberfire.workbench.model.impl.PerspectiveDefinitionImpl

        };

    }

    private void buildPerspective() {
        this.perspective = new PerspectiveDefinitionImpl( PanelType.ROOT_LIST );
        this.perspective.setName( AppConstants.INSTANCE.AdministrationPerspectiveName() );

        this.perspective.getRoot().addPart( new PartDefinitionImpl( new DefaultPlaceRequest( "RepositoriesEditor" ) ) );

        final PanelDefinition west = new PanelDefinitionImpl( PanelType.SIMPLE );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.