Package com.gwtplatform.mvp.client.proxy

Examples of com.gwtplatform.mvp.client.proxy.PlaceRequest


                    {
                        placeManager.revealPlace(lastSubPlace);
                    }
                    else
                    {
                        placeManager.revealPlace(new PlaceRequest(NameTokens.StandaloneServerPresenter));
                    }
                }
            });

View Full Code Here


                public void onClick(ClickEvent event) {

                    menuPopup.hide();

                    placeManager.revealPlace(
                            new PlaceRequest(NameTokens.ToolsPresenter).with("name", "run-as-role")
                    );


                }
            });
View Full Code Here

        {
            lastSubPlace = currentToken;
        }
        else if(lastSubPlace!=null)
        {
            placeManager.revealPlace(new PlaceRequest(lastSubPlace));
        }

        // first request, select default contents
        if(!hasBeenRevealed)
        {

            placeManager.revealPlace( new PlaceRequest(NameTokens.ServerPresenter));
            hasBeenRevealed = true;

        }
    }
View Full Code Here

        Column<MailSession, MailSession> option = new Column<MailSession, MailSession>(
                new ViewLinkCell<MailSession>(Console.CONSTANTS.common_label_view(), new ActionCell.Delegate<MailSession>() {
                    @Override
                    public void execute(MailSession selection) {
                        presenter.getPlaceManager().revealPlace(
                                new PlaceRequest(NameTokens.MailPresenter).with("name", selection.getJndiName())
                        );
                    }
                })
        ) {
            @Override
View Full Code Here

        Column<ResourceAdapter, ResourceAdapter> option = new Column<ResourceAdapter, ResourceAdapter>(
                new ViewLinkCell<ResourceAdapter>(Console.CONSTANTS.common_label_view(), new ActionCell.Delegate<ResourceAdapter>() {
                    @Override
                    public void execute(ResourceAdapter selection) {
                        presenter.getPlaceManager().revealPlace(
                                new PlaceRequest(NameTokens.ResourceAdapterPresenter).with("name", selection.getArchive())
                        );
                    }
                })
        ) {
            @Override
View Full Code Here

            {
                placeManager.revealPlace(lastSubRequest);
            }
            else
            {
                placeManager.revealPlace(new PlaceRequest(NameTokens.Topology));
            }
            hasBeenRevealed = true;
        }
        else if(!NameTokens.DomainRuntimePresenter.equals(currentToken))
        {
View Full Code Here

        // no token in URL (top level nav)
        else
        {
            if(lastPlace!=null)
            {
                placeManager.revealPlace(new PlaceRequest(lastPlace));
            }
            else
            {
                // no token and no last place given
View Full Code Here

                preference, existingSubsystems
        );

        Log.debug("reveal default subsystem : pref "+ preference + "; chosen "+defaultSubsystem[1]);

        placeManager.revealPlace(new PlaceRequest(defaultSubsystem[1]));
    }
View Full Code Here

            browser.addClickHandler(new ClickHandler() {
                @Override
                public void onClick(ClickEvent clickEvent) {
                    toolsPopup.hide();
                    placeManager.revealPlace(
                            new PlaceRequest(NameTokens.ToolsPresenter).with("name", tool[1])
                    );
                }
            });

            toolsList.add(browser);
        }
        toolsPopup.setWidget(toolsList);

        final HTML toolsLink = new HTML("<i class='icon-caret-up'></i>&nbsp;"+"Tools");
        toolsLink.addStyleName("footer-link");
        toolsLink.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent clickEvent) {

                int listHeight = toolsList.getWidgetCount() * 25;

                toolsPopup.setPopupPosition(
                        toolsLink.getAbsoluteLeft()-45,
                        toolsLink.getAbsoluteTop()-(listHeight-25)-50

                );

                toolsPopup.setWidth("165");
                toolsPopup.setHeight(listHeight +"");
                toolsPopup.show();
            }
        });

        HTML settings = new HTML("<i class='icon-wrench'></i>&nbsp;"+Console.CONSTANTS.common_label_settings());
        settings.addStyleName("footer-link");
        settings.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                placeManager.revealPlace(
                        new PlaceRequest(NameTokens.SettingsPresenter)
                );
            }
        });

        HorizontalPanel tools = new HorizontalPanel();
View Full Code Here

    public static void tearDownClass() throws Exception {
    }
   
    @Test
    public void testToPlaceToken() {
        PlaceRequest pr = new PlaceRequest("test").with("name1", "value1")
                .with("name2", "value2");
       
        String testString = formatter.toPlaceToken(pr);
       
        assertTrue(testString.equals("test?name1=value1&name2=value2"));
       
        pr = new PlaceRequest("test");
       
        testString = formatter.toPlaceToken(pr);
       
        assertTrue(testString.equals("test"));

        pr = new PlaceRequest("test").with("", "wrong").with("right1", "")
                .with("right2", "");
       
        testString = formatter.toPlaceToken(pr);
       
        assertTrue(testString.equals("test?right1&right2") ||
View Full Code Here

TOP

Related Classes of com.gwtplatform.mvp.client.proxy.PlaceRequest

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.