use of org.activityinfo.shared.dto.HasAdminEntityValues in project activityinfo by bedatadriven.
the class AdminFieldSetPresenter method updateBounds.
private void updateBounds() {
Extents oldBounds = bounds;
bounds = AdminBoundsHelper.calculate(country, 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