@Override protected void onClick(AjaxRequestTarget target, Form form) { version.processInput(); coverage.processInput(); final String coverageName = WCSRequestBuilderPanel.this.getCoverage.coverage; if (coverageName != null) { responseWindow.setDefaultModel(new Model(getDescribeXML(coverageName))); responseWindow.show(target); } } };
@Override protected void onClick(AjaxRequestTarget target, Form form) { version.processInput(); coverage.processInput(); final String coverageName = WCSRequestBuilderPanel.this.getCoverage.coverage; if (coverageName != null) { responseWindow.setDefaultModel(new Model(getDescribeXML(coverageName))); responseWindow.show(target); } } };
@Override public void convertInput() { choice.processInput(); String branch = choice.getConvertedInput(); setModelObject(branch); setConvertedInput(branch); }
@Override protected void onSubmit(AjaxRequestTarget target, Form form) { // we need to force validation or the value won't be converted styles.processInput(); StyleInfo style = (StyleInfo) styles.getConvertedInput(); if (style != null) { try { // same here, force validation or the field won't be udpated editor.reset(); setRawSLD(readFile(style)); } catch (Exception e) { error("Errors occurred loading the '" + style.getName() + "' style"); } target.addComponent(styleForm); } }
protected void convertInput() { if (!enabled.getModelObject()) { setConvertedInput(new DimensionInfoImpl()); } else { DimensionInfoImpl info = new DimensionInfoImpl(); info.setEnabled(true); attribute.processInput(); endAttribute.processInput(); info.setAttribute(attribute.getModelObject()); String endAttributeValue = endAttribute.getModelObject(); if ("-".equals(endAttributeValue)) { endAttributeValue = null; } info.setEndAttribute(endAttributeValue); info.setPresentation(presentation.getModelObject()); if (info.getPresentation() == DimensionPresentation.DISCRETE_INTERVAL) { if(time) { resTime.processInput(); info.setResolution(resTime.getModelObject()); } else { resElevation.processInput(); info.setResolution(resElevation.getModelObject()); } } setConvertedInput(info); } };
@Override protected void onSubmit(AjaxRequestTarget target, Form<?> form) { templates.processInput(); nameTextField.processInput(); wsChoice.processInput(); StyleType template = (StyleType) templates.getConvertedInput(); StyleGenerator styleGen = new StyleGenerator(stylePage.getCatalog());
@Override protected void onSubmit(AjaxRequestTarget target, Form<?> form) { // we need to force validation or the value won't be converted styles.processInput(); StyleInfo style = (StyleInfo) styles.getConvertedInput(); if (style != null) { try { // same here, force validation or the field won't be updated stylePage.editor.reset(); stylePage.setRawStyle(stylePage.readFile(style)); stylePage.getStyleInfo().setFormat(style.getFormat()); target.appendJavaScript( String.format( "if (document.gsEditors) { document.gsEditors.editor.setOption('mode', '%s'); }", stylePage.styleHandler().getCodeMirrorEditMode())); clearFeedbackMessages(); } catch (Exception e) { clearFeedbackMessages(); stylePage.error( "Errors occurred loading the '" + style.getName() + "' style"); LOGGER.log( Level.WARNING, "Errors occurred loading the '" + style.getName() + "' style", e); } target.add(stylePage); } } };
@Override protected void onClick(AjaxRequestTarget target, Form<?> form) { stylePage.editor.processInput(); wsChoice.processInput();
@Override protected void convertInput() { globalAttributes.visitChildren(new Component.IVisitor<Component>() { @Override public Object component(Component component) { if (component instanceof FormComponent) { FormComponent<?> formComponent = (FormComponent<?>) component; formComponent.processInput(); } return Component.IVisitor.CONTINUE_TRAVERSAL; } }); compressionLevel.processInput(); dataPacking.processInput(); shuffle.processInput(); List<GlobalAttribute> info = globalAttributes.getModelObject(); NetCDFSettingsContainer convertedInput = new NetCDFSettingsContainer(); convertedInput.setCompressionLevel(compressionLevel.getModelObject()); convertedInput.setGlobalAttributes(info); convertedInput.setDataPacking(dataPacking.getModelObject()); convertedInput.setShuffle(shuffle.getModelObject()); setConvertedInput((T) convertedInput); } }
attribute.processInput(); endAttribute.processInput(); info.setAttribute(attribute.getModelObject()); String endAttributeValue = endAttribute.getModelObject(); defaultValueStrategy.processInput(); defValueSetting.setStrategyType(defaultValueStrategy.getModelObject()); if (defValueSetting.getStrategyType() == Strategy.FIXED
@Override protected void convertInput() { globalAttributes.visitChildren(new Component.IVisitor<Component>() { @Override public Object component(Component component) { if (component instanceof FormComponent) { FormComponent<?> formComponent = (FormComponent<?>) component; formComponent.processInput(); } return Component.IVisitor.CONTINUE_TRAVERSAL; } }); compressionLevel.processInput(); dataPacking.processInput(); shuffle.processInput(); standardName.processInput(); uom.processInput(); List<GlobalAttribute> info = globalAttributes.getModelObject(); NetCDFLayerSettingsContainer convertedInput = new NetCDFLayerSettingsContainer(); convertedInput.setCompressionLevel(compressionLevel.getModelObject()); convertedInput.setGlobalAttributes(info); convertedInput.setDataPacking(dataPacking.getModelObject()); convertedInput.setShuffle(shuffle.getModelObject()); convertedInput.setLayerName(standardName.getModelObject()); convertedInput.setLayerUOM(uom.getModelObject()); setConvertedInput(convertedInput); } }
extraVariables.visitChildren(formComponentVisitor); compressionLevel.processInput(); dataPacking.processInput(); shuffle.processInput(); copyAttributes.processInput();
extraVariables.visitChildren(formComponentVisitor); compressionLevel.processInput(); dataPacking.processInput(); shuffle.processInput(); copyAttributes.processInput();