Search in sources :

Example 1 with JsonBean

use of org.eclipse.scout.rt.ui.html.json.JsonBean in project scout.rt by eclipse.

the class JsonBeanColumn method cellValueToJson.

@Override
public Object cellValueToJson(Object value) {
    IJsonObject jsonObject = MainJsonObjectFactory.get().createJsonObject(value);
    JsonBean jsonBean = (JsonBean) jsonObject;
    jsonBean.setBinaryResourceMediator(getJsonTable().getBinaryResourceMediator());
    return jsonObject.toJson();
}
Also used : JsonBean(org.eclipse.scout.rt.ui.html.json.JsonBean) IJsonObject(org.eclipse.scout.rt.ui.html.json.IJsonObject)

Aggregations

IJsonObject (org.eclipse.scout.rt.ui.html.json.IJsonObject)1 JsonBean (org.eclipse.scout.rt.ui.html.json.JsonBean)1