Package __TOP_LEVEL_PACKAGE__.client.scaffold.place

Examples of __TOP_LEVEL_PACKAGE__.client.scaffold.place.ProxyListPlacePicker


      Logger.getLogger("").addHandler(new RequestFactoryLogHandler(provider, Level.WARNING, new ArrayList<String>()));
    }

    /* Left side lets us pick from all the types of entities */

    final Renderer<ProxyListPlace> placePickerRenderer = new ApplicationListPlaceRenderer();
    Cell<ProxyListPlace> placePickerCell = new AbstractCell<ProxyListPlace>() {
      @Override
      public void render(Context context, ProxyListPlace value, SafeHtmlBuilder sb) {
        sb.appendEscaped(placePickerRenderer.render(value));
      }
    };
    CellList<ProxyListPlace> placePickerList = new CellList<ProxyListPlace>(placePickerCell, getMobileListResources());
    placePickerList.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.DISABLED);
    final ValuePicker<ProxyListPlace> placePickerView = new ValuePicker<ProxyListPlace>(placePickerList);
View Full Code Here


             * Hand the receiver a non-fatal callback, so that
             * com.google.web.bindery.requestfactory.shared.Receiver will not post a
             * runtime exception.
             */
            receiver.onTransportFailure(new ServerFailure("Unauthenticated user", null, null, false /* not fatal */));
            eventBus.fireEvent(new GaeAuthenticationFailureEvent(loginUrl));
            return;
          }
        }
        if (statusCode == 0) {
          /*
 
View Full Code Here

  protected HashSet<ProxyListPlace> getTopPlaces() {
    Set<Class<? extends EntityProxy>> types = ApplicationEntityTypesProcessor.getAll();
    HashSet<ProxyListPlace> rtn = new HashSet<ProxyListPlace>(types.size());

    for (Class<? extends EntityProxy> type : types) {
      rtn.add(new ProxyListPlace(type));
    }

    return rtn;
  }
View Full Code Here

   *
   * @param saved
   *            true if changes were comitted, false if user canceled
   */
  protected void exit(boolean saved) {
    this.placeController.goTo(new ProxyListPlace(getProxyId().getProxyClass()));
  }
View Full Code Here

    private final ApplicationRequestFactory requestFactory;

    @Inject
    public RequestFactoryProvider(EventBus eventBus) {
      requestFactory = GWT.create(ApplicationRequestFactory.class);
      requestFactory.initialize(eventBus, new EventSourceRequestTransport(eventBus__GAE_REQUEST_TRANSPORT__));
    }
View Full Code Here

  public GaeLoginWidgetDriver(MakesGaeRequests requests) {
    this.requests = requests;
  }

  public void setWidget(final LoginWidget widget) {
    GaeUserServiceRequest request = requests.userServiceRequest();
    request.createLogoutURL(Location.getHref()).to(new Receiver<String>() {
      public void onSuccess(String response) {
        widget.setLogoutUrl(response);
      }
    });

    request.getCurrentUser().to(new Receiver<GaeUser>() {
      @Override
      public void onSuccess(GaeUser response) {
        if (response != null) {
          widget.setUserName(response.getNickname());
        }
      }
    });

    request.fire();
  }
View Full Code Here

TOP

Related Classes of __TOP_LEVEL_PACKAGE__.client.scaffold.place.ProxyListPlacePicker

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.