use of org.activityinfo.ui.client.page.config.link.IndicatorLinkPlace in project activityinfo by bedatadriven.
the class ConfigNavigator method load.
@Override
public void load(DataReader<List<Link>> dataReader, Object parent, AsyncCallback<List<Link>> callback) {
if (parent == null) {
Link dbListLink = Link.to(new DbListPageState()).labeled(messages.databases()).withIcon(icons.database()).build();
Link dbLinksLink = Link.to(new IndicatorLinkPlace()).labeled(messages.linkIndicators()).withIcon(icons.link()).build();
callback.onSuccess(Arrays.asList(dbListLink, dbLinksLink));
} else {
Link link = (Link) parent;
if (link.getPageState() instanceof DbListPageState) {
loadDbListAsync(callback);
}
}
}
Aggregations