use of org.activityinfo.legacy.shared.model.HasAdminEntityValues in project activityinfo by bedatadriven.
the class AdminFieldSetPresenter method updateBounds.
private void updateBounds() {
Extents oldBounds = bounds;
bounds = AdminBoundsHelper.calculate(countryBounds, levels, new HasAdminEntityValues() {
@Override
public AdminEntityDTO getAdminEntity(int levelId) {
return level(levelId).getSelection();
}
});
if (!bounds.equals(oldBounds)) {
boundsName = AdminBoundsHelper.name(bounds, levels, this);
fireEvent(new BoundsChangedEvent(bounds, boundsName));
}
}
Aggregations