Search in sources :

Example 1 with FormFieldProvisioningContext

use of org.eclipse.scout.rt.client.services.lookup.FormFieldProvisioningContext in project scout.rt by eclipse.

the class AbstractListBox method execLoadTableData.

@ConfigOperation
@Order(230)
protected List<? extends ILookupRow<KEY>> execLoadTableData() {
    List<? extends ILookupRow<KEY>> data;
    // (1) get data by service
    if (getLookupCall() != null) {
        ILookupCall<KEY> call = BEANS.get(ILookupCallProvisioningService.class).newClonedInstance(getLookupCall(), new FormFieldProvisioningContext(AbstractListBox.this));
        prepareLookupCall(call);
        data = call.getDataByAll();
        data = filterLookupResult(call, data);
    } else // (b) get data direct
    {
        data = filterLookupResult(null, null);
    }
    return data;
}
Also used : FormFieldProvisioningContext(org.eclipse.scout.rt.client.services.lookup.FormFieldProvisioningContext) ILookupCallProvisioningService(org.eclipse.scout.rt.client.services.lookup.ILookupCallProvisioningService) Order(org.eclipse.scout.rt.platform.Order) ConfigOperation(org.eclipse.scout.rt.platform.annotations.ConfigOperation)

Aggregations

FormFieldProvisioningContext (org.eclipse.scout.rt.client.services.lookup.FormFieldProvisioningContext)1 ILookupCallProvisioningService (org.eclipse.scout.rt.client.services.lookup.ILookupCallProvisioningService)1 Order (org.eclipse.scout.rt.platform.Order)1 ConfigOperation (org.eclipse.scout.rt.platform.annotations.ConfigOperation)1