use of org.jowidgets.cap.ui.api.lookup.ILookUpCallback in project jo-client-platform by jo-source.
the class LookUpAccessImpl method readLookUp.
private void readLookUp() {
if (executionTask == null) {
executionTask = CapUiToolkit.executionTaskFactory().create();
fireTaskCreated(executionTask);
for (final ILookUpCallback callback : callbacks.keySet()) {
callback.beforeChange();
}
final ILookUpService lazyLookUpService = getLookUpServiceLazy();
if (lazyLookUpService != null) {
lazyLookUpService.readValues(lookUpCallback, executionTask);
} else {
lookUpCallback.exception(new IllegalStateException("No look up service found for the lookUp '" + lookUpId + "'"));
}
}
}
Aggregations