Package org.uberfire.mvp.impl

Examples of org.uberfire.mvp.impl.DefaultPlaceRequest


        this.perspective.setTransient(true);
        this.perspective.setName("Authoring perspective");

        final PanelDefinition west = new PanelDefinitionImpl(PanelType.SIMPLE);
        west.setWidth(300);
        west.addPart(new PartDefinitionImpl(new DefaultPlaceRequest("FileExplorer")));

        this.perspective.getRoot().insertChild(Position.WEST, west);
    }
View Full Code Here


        final Menus menus =
                newTopLevelMenu("Gallery").respondsWith(new Command() {
                    public void execute() {
                        if (defaultPerspective != null) {
                            placeManager.goTo(new DefaultPlaceRequest(defaultPerspective.getIdentifier()));
                        } else {
                            Window.alert("Default perspective not found.");
                        }
                    }
                }).endMenu().
View Full Code Here

    private List<? extends MenuItem> getSampleDashboardMenuItems() {
        final List<MenuItem> result = new ArrayList<MenuItem>( 1 );

        result.add(MenuFactory.newSimpleItem("Sales Dashboard").respondsWith(new Command() {
            public void execute() {
                placeManager.goTo( new DefaultPlaceRequest( "Sales Dashboard" ) );
            }
        }).endMenu().build().getItems().get(0));

        result.add(MenuFactory.newSimpleItem("Table reports").respondsWith(new Command() {
            public void execute() {
                placeManager.goTo( new DefaultPlaceRequest( "Sales Reports" ) );
            }
        }).endMenu().build().getItems().get(0));

        return result;
    }
View Full Code Here

    public PerspectiveDefinition buildPerspective() {
        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

    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

    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);
        west.setWidth(300);
        west.setMinWidth(200);
        west.addPart(new PartDefinitionImpl(new DefaultPlaceRequest("FileExplorer")));

        this.perspective.getRoot().insertChild(Position.WEST,
                west);
    }
View Full Code Here

        this.perspective.setName("Author");

        final PanelDefinition west = new PanelDefinitionImpl(PanelType.SIMPLE);
        west.setWidth(400);
        west.setMinWidth(350);
        west.addPart(new PartDefinitionImpl(new DefaultPlaceRequest("org.kie.guvnor.explorer")));

        this.perspective.getRoot().insertChild(Position.WEST,
                west);
    }
View Full Code Here

                }).endMenu().build().getItems().get(0));
        menuItems.add(MenuFactory.newSimpleItem(AppConstants.INSTANCE.RecentlyEdited()).respondsWith(
                new Command() {
                    @Override
                    public void execute() {
                        PlaceRequest p = new DefaultPlaceRequest("Inbox");
                        p.addParameter("inboxname", InboxPresenter.RECENT_EDITED_ID);
                        placeManager.goTo(p);
                    }
                }).endMenu().build().getItems().get(0));
        menuItems.add(MenuFactory.newSimpleItem(AppConstants.INSTANCE.RecentlyOpened()).respondsWith(
                new Command() {
                    @Override
                    public void execute() {
                        PlaceRequest p = new DefaultPlaceRequest("Inbox");
                        p.addParameter("inboxname", InboxPresenter.RECENT_VIEWED_ID);
                        placeManager.goTo(p);
                    }
                }).endMenu().build().getItems().get(0));
        return menuItems;
    }
View Full Code Here

                .newTopLevelMenu( "Home" )
                .respondsWith( new Command() {
                    @Override
                    public void execute() {
                        if ( defaultPerspective != null ) {
                            placeManager.goTo( new DefaultPlaceRequest( defaultPerspective.getIdentifier() ) );
                        } else {
                            Window.alert( "Default perspective not found." );
                        }
                    }
                } )
View Full Code Here

            final String name = perspective.getPerspective().getName();
            final Command cmd = new Command() {

                @Override
                public void execute() {
                    placeManager.goTo( new DefaultPlaceRequest( perspective.getIdentifier() ) );
                }

            };
            final MenuItem item = newSimpleItem( name ).respondsWith( cmd ).endMenu().build().getItems().get( 0 );
            perspectives.add( item );
View Full Code Here

TOP

Related Classes of org.uberfire.mvp.impl.DefaultPlaceRequest

Copyright © 2018 www.massapicom. 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.