Example usage for com.google.gwt.requestfactory.shared EntityProxyChange getWriteOperation

List of usage examples for com.google.gwt.requestfactory.shared EntityProxyChange getWriteOperation

Introduction

In this page you can find the example usage for com.google.gwt.requestfactory.shared EntityProxyChange getWriteOperation.

Prototype

public WriteOperation getWriteOperation() 

Source Link

Document

Returns the WriteOperation associated with this instance.

Usage

From source file:com.google.gwt.sample.expenses.client.place.AbstractProxyListActivity.java

License:Apache License

public void start(AcceptsOneWidget display, EventBus eventBus) {
    view.setDelegate(this);
    EntityProxyChange.registerForProxyType(eventBus, proxyClass, new EntityProxyChange.Handler<P>() {
        public void onProxyChange(EntityProxyChange<P> event) {
            update(event.getWriteOperation(), event.getProxyId());
        }// w w  w.  j a  va2s.  c o  m
    });
    eventBus.addHandler(PlaceChangeEvent.TYPE, new PlaceChangeEvent.Handler() {
        public void onPlaceChange(PlaceChangeEvent event) {
            updateSelection(event.getNewPlace());
        }
    });
    this.display = display;
    init();
    updateSelection(placeController.getWhere());
}