use of org.activityinfo.shared.dto.CountryDTO in project activityinfo by bedatadriven.
the class AdminFieldSetPresenterTest method presenterForActivity.
private void presenterForActivity(ActivityDTO activity) {
CountryDTO country = activity.getDatabase().getCountry();
presenter = new AdminFieldSetPresenter(dispatcher, country, country.getAdminLevels());
presenter.addListener(AdminLevelSelectionEvent.TYPE, selectionListener);
presenter.addListener(LevelStateChangeEvent.TYPE, levelStateChangeListener);
presenter.addListener(BoundsChangedEvent.TYPE, boundsListener);
}
Aggregations