Package com.gwtplatform.mvp.client.proxy

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


        }
    }

    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


  private void prepareFromRequestFailed(PlaceRequest placeRequest) {
    placeManager.revealErrorPlace(placeRequest.getNameToken());
  }

  private PlaceRequest prepareRequest() {
    PlaceRequest result = new PlaceRequest(getProxy().getNameToken());

    if (action != DEFAULT_ACTION) {
      result = result.with(PARAM_ACTION, action);
    }
    if (id != INVALID_ID) {
      result = result.with(PARAM_ID, Long.toString(id));
    }
    return result;
  }
View Full Code Here

      @RetryDelay int retryDelay,
      @MaxRetries int maxRetries,
      final CurrentUser currentUser) {
    super(eventBus, tokenFormatter);

    this.defaultPlaceRequest = new PlaceRequest(defaultPlaceNameToken);
    this.currentUser = currentUser;
    this.retryDelay = retryDelay;
    this.maxRetries = maxRetries;

    this.retryTimer = new Timer() {
View Full Code Here

    @Inject
    public PlaceManager(EventBus eventBus, TokenFormatter tokenFormatter, @DefaultPlace String defaultPlaceNameToken) {
        super(eventBus, tokenFormatter);

        this.defaultPlaceRequest = new PlaceRequest(defaultPlaceNameToken);
    }
View Full Code Here

  }

  @Override
  public void handleClickName(String idHash) {
    GWT.log("Revealing id=" + idHash);
    PlaceRequest request = new PlaceRequest.Builder()
        .nameToken(placeManager.getCurrentPlaceRequest().getNameToken())
        .with(Parameters.id.name(), idHash).build();
    // Update browser first, and the reveal
    placeManager.updateHistory(request, true);
    placeManager.revealPlace(request, false);
View Full Code Here

  }
 
  private void watchRandomProduct(LookForResult result){
    List<String> ids = new ArrayList<String>(result.getArticles().keySet());
    int randomIndex = Random.nextInt(ids.size());
    PlaceRequest request = new PlaceRequest.Builder()
    .nameToken(NameTokens.getLookfor()).with(Parameters.id.name(), ids.get(randomIndex)).build();
    placeManager.revealPlace(request);
  }
View Full Code Here

    user;
  }

  @Override
  public void handleClickName(Tags tag, String idHash) {
    PlaceRequest request = new PlaceRequest.Builder().nameToken(NameTokens.lookfor).with(LookforPresenter.Parameters.id.name(), idHash).build();
    placeManager.revealPlace(request, true);
  }
View Full Code Here

    getView().setUiHandlers(this);
  }

  @Override
  public void handleLogin() {
    PlaceRequest request = new PlaceRequest.Builder().nameToken(NameTokens.getLogin()).build();
    GWT.log("Revealing "+request.getNameToken());
    placeManager.revealPlace(request);
  }
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

            widget.addClickHandler(new ClickHandler() {
                @Override
                public void onClick(ClickEvent event) {
                    placeManager.revealPlace(
                            new PlaceRequest(name)
                    );
                }
            });
            linksPane.add(widget, id);
View Full Code Here

TOP

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

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.