Package com.gwtplatform.mvp.client.proxy

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


       
        String testString = formatter.toHistoryToken(list);
       
        assertTrue(testString.equals(""));
       
        list.add(new PlaceRequest("test").with("name", "value"));
       
        testString = formatter.toHistoryToken(list);
       
        assertTrue(testString.equals("test?name=value"));
    }
View Full Code Here


    @Test
    public void testToPlaceRequest() {
       
        String preString = "test";
       
        PlaceRequest req = formatter.toPlaceRequest(preString);
       
        String postString = formatter.toPlaceToken(req);
       
        assertTrue(preString.equals(postString));
       
View Full Code Here

  @Test
  public void testPlaceRequestHierarchy() {
   
        String preString = "test?name1=value1&name2=value2";
       
        PlaceRequest req = formatter.toPlaceRequestHierarchy(preString).get(0);
       
        String postString = formatter.toPlaceToken(req);
       
        assertTrue(preString.equals(postString));
       
View Full Code Here

    }

    @Override
    public PlaceRequest toPlaceRequest(String placeToken)
            throws TokenFormatException {
        PlaceRequest result = null;
        int qMarkLocations;
        int ampLocation;
        String[] paramParts;
        String paramPart;

        Logger.trace("getting place request for " + placeToken);
       
        try {
            qMarkLocations = placeToken.indexOf('?');

            if (qMarkLocations < 0) {
                ampLocation = placeToken.indexOf('&');
                if (ampLocation >= 0) {
                    placeToken = placeToken.substring(0, ampLocation);
                }
                result = new PlaceRequest(placeToken);
            } else {
                result = new PlaceRequest(
                        placeToken.substring(0, qMarkLocations));
                paramPart = placeToken.substring(qMarkLocations + 1);
                paramParts = paramPart.split("&");
                result = addParamsToRequest(result, paramParts);
            }
View Full Code Here

    @Inject
    public BasePlaceManager(EventBus eventBus, TokenFormatter tokenFormatter,
            @DefaultPlace String defaultPlace) {
        super(eventBus, tokenFormatter);
       
        this.defaultPlace = new PlaceRequest(defaultPlace);
       
    }
View Full Code Here

        }
    }

    public void requestHostIndex(int hostIndex)
    {
        PlaceRequest placeRequest = new PlaceRequest(NameTokens.Topology).with("hostIndex", String.valueOf(hostIndex));
        if (fake)
        {
            placeRequest = placeRequest.with("fake", String.valueOf(fake));
        }
        placeManager.revealPlace(placeRequest);
    }
View Full Code Here

        Column<JPADeployment, JPADeployment> option = new Column<JPADeployment, JPADeployment>(
                new TextLinkCell<JPADeployment>(Console.CONSTANTS.common_label_view(), new ActionCell.Delegate<JPADeployment>() {
                    @Override
                    public void execute(JPADeployment selection) {
                        presenter.getPlaceManager().revealPlace(
                                new PlaceRequest(NameTokens.JPAMetricPresenter)
                                        .with("dpl", selection.getDeploymentName())
                                        .with("unit", selection.getPersistenceUnit())
                        );
                    }
                })
View Full Code Here

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

            }
            //RevealRootPopupContentEvent.fire(this, debug);
        }
        else if("mbui-workbench".equals(requestedTool))
        {
            placeManager.revealPlace(new PlaceRequest("mbui-workbench"));
        }
        else if("access-log".equals(requestedTool))
        {
            if(window == null)
            {
View Full Code Here

    @Inject
    public DefaultPlaceManager(EventBus eventBus, TokenFormatter tokenFormatter, @DefaultPlace String defaultNameToken)
    {
        super(eventBus, tokenFormatter);
        this.defaultPlaceRequest = new PlaceRequest(defaultNameToken);
    }
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.