private CheckBoxParamPanel createAutoIndexingPanel() { CheckBoxParamPanel checkBoxParamPanel = new CheckBoxParamPanel( "autoIndexing", autoIndexingModel, new ResourceModel("autoIndexing", "Auto-Indexing")); checkBoxParamPanel.setOutputMarkupId(true); return checkBoxParamPanel; }
return new CheckBoxParamPanel(id, valueModel, labelModel);
form.add(new CheckBoxParamPanel("enabledPanel", new PropertyModel(model, "enabled"), new ResourceModel("enabled", "Enabled"))); CheckBoxParamPanel useConnectionPooling = new CheckBoxParamPanel( "useConnectionPoolingPanel", useHttpConnectionPoolModel, new ResourceModel( "AbstractWMSStorePage.useHttpConnectionPooling")); form.add(maxConnections); useConnectionPooling.getFormComponent().add(new OnChangeAjaxBehavior() {
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))); }
false)); form.add( new CheckBoxParamPanel( "enabledPanel", new PropertyModel(model, "enabled"), new PropertyModel<Boolean>(model, "useConnectionPooling"); CheckBoxParamPanel useConnectionPooling = new CheckBoxParamPanel( "useConnectionPoolingPanel", useHttpConnectionPoolModel, .getFormComponent() .add( new OnChangeAjaxBehavior() {
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))); }
false)); form.add( new CheckBoxParamPanel( "enabledPanel", new PropertyModel(model, "enabled"), new PropertyModel<Boolean>(model, "useConnectionPooling"); CheckBoxParamPanel useConnectionPooling = new CheckBoxParamPanel( "useConnectionPoolingPanel", useHttpConnectionPoolModel, .getFormComponent() .add( new OnChangeAjaxBehavior() {
parameterPanel = new CheckBoxParamPanel(componentId, new MapModel(paramsModel, paramName), new ResourceModel(paramLabel, paramLabel));
new CheckBoxParamPanel( componentId, new MapModel(paramsModel, paramName),
(IValidator[]) null)); paramsForm.add(new CheckBoxParamPanel("dataStoreEnabledPanel", new PropertyModel(model, "enabled"), new ResourceModel("enabled", "Enabled")));
new CheckBoxParamPanel( "dataStoreEnabledPanel", new PropertyModel(model, "enabled"),
paramsForm.add(new CheckBoxParamPanel("enabledPanel", new PropertyModel(model, "enabled"), new ResourceModel("enabled", "Enabled")));
false)); paramsForm.add( new CheckBoxParamPanel( "enabledPanel", new PropertyModel(model, "enabled"),