public ShapefileStoreEditPanel(final String componentId, final Form storeEditForm) {
super(componentId, storeEditForm);
final IModel model = storeEditForm.getModel();
setDefaultModel(model);
final IModel paramsModel = new PropertyModel(model, "connectionParameters");
FileParamPanel file = buildFileParamPanel(paramsModel);
add(file);
add(
new CharsetPanel(
"charset",
new MapModel(paramsModel, DBFCHARSET.key),
new ParamResourceModel("charset", this),
false));
add(
new CheckBoxParamPanel(
"memoryMapped",
new MapModel(paramsModel, MEMORY_MAPPED.key),
new ParamResourceModel("memoryMapped", this)));
add(
new CheckBoxParamPanel(
"cacheMemoryMaps",
new MapModel(paramsModel, CACHE_MEMORY_MAPS.key),
new ParamResourceModel("cacheMemoryMaps", this)));
add(
new CheckBoxParamPanel(
"spatialIndex",
new MapModel(paramsModel, CREATE_SPATIAL_INDEX.key),
new ParamResourceModel("spatialIndex", this)));
}