use of org.activityinfo.shared.dto.IndicatorGroup in project activityinfo by bedatadriven.
the class IndicatorGridPanel method setDatabase.
public void setDatabase(UserDatabaseDTO db) {
setHeading(db.getName());
store.removeAll();
for (ActivityDTO activity : db.getActivities()) {
store.add(activity);
for (IndicatorGroup group : activity.groupIndicators()) {
if (group.getName() == null) {
for (IndicatorDTO indicator : group.getIndicators()) {
store.add(indicator);
}
} else {
store.add(group);
for (IndicatorDTO indicator : group.getIndicators()) {
store.add(indicator);
}
}
}
}
}
Aggregations