Search in sources :

Example 1 with IndicatorLinkPlace

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);
        }
    }
}
Also used : Link(org.activityinfo.ui.client.page.common.nav.Link) IndicatorLinkPlace(org.activityinfo.ui.client.page.config.link.IndicatorLinkPlace)

Aggregations

Link (org.activityinfo.ui.client.page.common.nav.Link)1 IndicatorLinkPlace (org.activityinfo.ui.client.page.config.link.IndicatorLinkPlace)1