Search in sources :

Example 1 with FoundsetPropertyTypeConfig

use of com.servoy.j2db.server.ngclient.property.FoundsetPropertyTypeConfig in project servoy-client by Servoy.

the class NGFoundSetManager method getFoundsetTypeSabloValue.

private FoundsetTypeSabloValue getFoundsetTypeSabloValue(IFoundSetInternal foundset, JSONObject dataproviders) {
    FoundsetTypeSabloValue foundsetTypeSabloValue = foundsetTypeSabloValueMap.get(foundset);
    if (foundsetTypeSabloValue == null) {
        foundsetTypeSabloValue = new FoundsetTypeSabloValue(new JSONObject(), null, null, new FoundsetPropertyTypeConfig(false, false, null, false, 15, false)) {

            @Override
            protected void updateFoundset(IRecordInternal record) {
                if (record != null) {
                    super.updateFoundset(record);
                }
            }
        };
        foundsetTypeSabloValue.updateFoundset(foundset);
        foundsetTypeSabloValueMap.put(foundset, foundsetTypeSabloValue);
    }
    foundsetTypeSabloValue.initializeDataproviders(dataproviders);
    foundsetTypeSabloValue.getViewPort().setBounds(0, foundsetTypeSabloValue.getFoundset().getSize());
    return foundsetTypeSabloValue;
}
Also used : FoundsetTypeSabloValue(com.servoy.j2db.server.ngclient.property.FoundsetTypeSabloValue) JSONObject(org.json.JSONObject) IRecordInternal(com.servoy.j2db.dataprocessing.IRecordInternal) FoundsetPropertyTypeConfig(com.servoy.j2db.server.ngclient.property.FoundsetPropertyTypeConfig)

Aggregations

IRecordInternal (com.servoy.j2db.dataprocessing.IRecordInternal)1 FoundsetPropertyTypeConfig (com.servoy.j2db.server.ngclient.property.FoundsetPropertyTypeConfig)1 FoundsetTypeSabloValue (com.servoy.j2db.server.ngclient.property.FoundsetTypeSabloValue)1 JSONObject (org.json.JSONObject)1