use of org.activityinfo.client.page.entry.location.LocationDialog 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);
}
});
}
use of org.activityinfo.client.page.entry.location.LocationDialog in project activityinfo by bedatadriven.
the class SiteDialogLauncher method chooseLocationThenAddSite.
private void chooseLocationThenAddSite(final ActivityDTO activity, final SiteDialogCallback callback) {
LocationDialog dialog = new LocationDialog(dispatcher, activity.getDatabase().getCountry(), activity.getLocationType());
dialog.show(new LocationDialog.Callback() {
@Override
public void onSelected(LocationDTO location, boolean isNew) {
SiteDTO newSite = new SiteDTO();
newSite.setActivityId(activity.getId());
newSite.setLocation(location);
SiteDialog dialog = new SiteDialog(dispatcher, activity);
dialog.showNew(newSite, location, isNew, callback);
}
});
}
Aggregations