Search in sources :

Example 1 with Callback

use of org.activityinfo.client.page.entry.location.LocationDialog.Callback in project activityinfo by bedatadriven.

the class LocationSection method changeLocation.

private void changeLocation() {
    LocationDialog dialog = new LocationDialog(dispatcher, activity.getDatabase().getCountry(), activity.getLocationType());
    dialog.show(new Callback() {

        @Override
        public void onSelected(LocationDTO location, boolean isNew) {
            updateForm(location, isNew);
        }
    });
}
Also used : Callback(org.activityinfo.client.page.entry.location.LocationDialog.Callback) AsyncCallback(com.google.gwt.user.client.rpc.AsyncCallback) LocationDialog(org.activityinfo.client.page.entry.location.LocationDialog) LocationDTO(org.activityinfo.shared.dto.LocationDTO)

Aggregations

AsyncCallback (com.google.gwt.user.client.rpc.AsyncCallback)1 LocationDialog (org.activityinfo.client.page.entry.location.LocationDialog)1 Callback (org.activityinfo.client.page.entry.location.LocationDialog.Callback)1 LocationDTO (org.activityinfo.shared.dto.LocationDTO)1