Search in sources :

Example 1 with HasAdminEntityValues

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));
    }
}
Also used : HasAdminEntityValues(org.activityinfo.shared.dto.HasAdminEntityValues) Extents(org.activityinfo.shared.util.mapping.Extents)

Aggregations

HasAdminEntityValues (org.activityinfo.shared.dto.HasAdminEntityValues)1 Extents (org.activityinfo.shared.util.mapping.Extents)1