Search in sources :

Example 1 with HasAdminEntityValues

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));
    }
}
Also used : HasAdminEntityValues(org.activityinfo.legacy.shared.model.HasAdminEntityValues) Extents(org.activityinfo.model.type.geo.Extents)

Aggregations

HasAdminEntityValues (org.activityinfo.legacy.shared.model.HasAdminEntityValues)1 Extents (org.activityinfo.model.type.geo.Extents)1