Search in sources :

Example 6 with CountryDTO

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

Aggregations

CountryDTO (org.activityinfo.shared.dto.CountryDTO)6 UserDatabaseDTO (org.activityinfo.shared.dto.UserDatabaseDTO)3 AdminLevelDTO (org.activityinfo.shared.dto.AdminLevelDTO)2 Test (org.junit.Test)2 FieldEvent (com.extjs.gxt.ui.client.event.FieldEvent)1 RadioGroup (com.extjs.gxt.ui.client.widget.form.RadioGroup)1 DispatcherSync (org.activityinfo.server.command.DispatcherSync)1 CreateEntity (org.activityinfo.shared.command.CreateEntity)1 Filter (org.activityinfo.shared.command.Filter)1 GetSchema (org.activityinfo.shared.command.GetSchema)1 SiteResult (org.activityinfo.shared.command.result.SiteResult)1 ActivityDTO (org.activityinfo.shared.dto.ActivityDTO)1 LocationTypeDTO (org.activityinfo.shared.dto.LocationTypeDTO)1 SiteDTO (org.activityinfo.shared.dto.SiteDTO)1 AdministrativeLevelClustering (org.activityinfo.shared.report.model.clustering.AdministrativeLevelClustering)1 AutomaticClustering (org.activityinfo.shared.report.model.clustering.AutomaticClustering)1 NoClustering (org.activityinfo.shared.report.model.clustering.NoClustering)1 HSSFWorkbook (org.apache.poi.hssf.usermodel.HSSFWorkbook)1 Capture (org.easymock.Capture)1