Search in sources :

Example 1 with BaseModelData

use of com.extjs.gxt.ui.client.data.BaseModelData in project activityinfo by bedatadriven.

the class BaseMapDialog method googleThumb.

private ModelData googleThumb(GoogleBaseMap baseMap, String name) {
    BaseModelData thumb = new BaseModelData();
    thumb.set("id", baseMap.getId());
    thumb.set("name", name);
    thumb.set("path", GWT.getModuleBaseURL() + "basemaps/" + baseMap.getId() + ".png");
    return thumb;
}
Also used : BaseModelData(com.extjs.gxt.ui.client.data.BaseModelData)

Example 2 with BaseModelData

use of com.extjs.gxt.ui.client.data.BaseModelData in project activityinfo by bedatadriven.

the class BaseMapDialog method tileThumb.

private ModelData tileThumb(BaseMap baseMap) {
    BaseModelData thumb = new BaseModelData();
    thumb.set("id", baseMap.getId());
    thumb.set("name", ((TileBaseMap) baseMap).getName());
    thumb.set("path", ((TileBaseMap) baseMap).getThumbnailUrl());
    return thumb;
}
Also used : BaseModelData(com.extjs.gxt.ui.client.data.BaseModelData)

Aggregations

BaseModelData (com.extjs.gxt.ui.client.data.BaseModelData)2