@Test public void testInitializeWithoutParams() { initializer.initialize(field, fieldElement, context); verify(field, never()).setMin(any()); verify(field, never()).setMax(any()); verify(field, never()).setStep(any()); verify(field, never()).setPrecision(any()); }
@Override public void initialize(FIELD field, FieldElement fieldElement, FormGenerationContext context) { String min = fieldElement.getParams().get("min"); T value = getValue(min); if (value != null) { field.setMin(value); } String max = fieldElement.getParams().get("max"); value = getValue(max); if (value != null) { field.setMax(value); } String precision = fieldElement.getParams().get("precision"); value = getValue(precision); if (value != null) { field.setPrecision(value); } String step = fieldElement.getParams().get("step"); value = getValue(step); if (value != null) { field.setStep(value); } }
AbstractSliderFieldInitializer implements FieldInitializer<FIELD> { @Override public void initialize(FIELD field, FieldElement fieldElement, FormGenerationContext context) { String min = fieldElement.getParams().get("min"); T value = getValue(min); if (value != null) { field.setMin(value); } String max = fieldElement.getParams().get("max"); value = getValue(max); if (value != null) { field.setMax(value); } String precision = fieldElement.getParams().get("precision"); value = getValue(precision); if (value != null) { field.setPrecision(value); } String step = fieldElement.getParams().get("step"); value = getValue(step); if (value != null) { field.setStep(value); } } }
AbstractSliderFieldInitializer implements FieldInitializer<FIELD> { @Override public void initialize(FIELD field, FieldElement fieldElement, FormGenerationContext context) { String min = fieldElement.getParams().get("min"); T value = getValue(min); if (value != null) { field.setMin(value); } String max = fieldElement.getParams().get("max"); value = getValue(max); if (value != null) { field.setMax(value); } String precision = fieldElement.getParams().get("precision"); value = getValue(precision); if (value != null) { field.setPrecision(value); } String step = fieldElement.getParams().get("step"); value = getValue(step); if (value != null) { field.setStep(value); } }  }
AbstractSliderFieldInitializer implements FieldInitializer<FIELD> { @Override public void initialize(FIELD field, FieldElement fieldElement, FormGenerationContext context) { String min = fieldElement.getParams().get("min"); T value = getValue(min); if (value != null) { field.setMin(value); } String max = fieldElement.getParams().get("max"); value = getValue(max); if (value != null) { field.setMax(value); } String precision = fieldElement.getParams().get("precision"); value = getValue(precision); if (value != null) { field.setPrecision(value); } String step = fieldElement.getParams().get("step"); value = getValue(step); if (value != null) { field.setStep(value); } }  @Override void initialize(FIELD field,
                           FieldElement fieldElement,
                           FormGenerationContext context); }
AbstractSliderFieldInitializer implements FieldInitializer<FIELD> { @Override public void initialize(FIELD field, FieldElement fieldElement, FormGenerationContext context) { String min = fieldElement.getParams().get("min"); T value = getValue(min); if (value != null) { field.setMin(value); } String max = fieldElement.getParams().get("max"); value = getValue(max); if (value != null) { field.setMax(value); } String precision = fieldElement.getParams().get("precision"); value = getValue(precision); if (value != null) { field.setPrecision(value); } String step = fieldElement.getParams().get("step"); value = getValue(step); if (value != null) { field.setStep(value); } }  @Override void initialize(FIELD field,
                           FieldElement fieldElement,
                           FormGenerationContext context);  }