Search in sources :

Example 1 with ObservableTree

use of org.activityinfo.observable.ObservableTree in project activityinfo by bedatadriven.

the class OfflineStore method query.

public Observable<ColumnSet> query(QueryModel queryModel) {
    ResourceId rootFormId = queryModel.getRowSources().get(0).getRootFormId();
    Observable<FormTree> tree = new ObservableTree<>(new FormTreeLoader(rootFormId, this::getCachedMetadata), com.google.gwt.core.client.Scheduler.get());
    return tree.join(formTree1 -> query(formTree1, queryModel));
}
Also used : FormTree(org.activityinfo.model.formTree.FormTree) ResourceId(org.activityinfo.model.resource.ResourceId) ObservableTree(org.activityinfo.observable.ObservableTree) FormTreeLoader(org.activityinfo.ui.client.store.FormTreeLoader)

Aggregations

FormTree (org.activityinfo.model.formTree.FormTree)1 ResourceId (org.activityinfo.model.resource.ResourceId)1 ObservableTree (org.activityinfo.observable.ObservableTree)1 FormTreeLoader (org.activityinfo.ui.client.store.FormTreeLoader)1