use of org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.slider.definition.DoubleSliderDefinition in project kie-wb-common by kiegroup.
the class SliderFieldRendererTest method getFieldDefinition.
@Override
protected SliderBaseDefinition getFieldDefinition() {
DoubleSliderDefinition doubleSliderDefinition = new DoubleSliderDefinition();
doubleSliderDefinition.setName(NAME);
doubleSliderDefinition.setBinding(NAME);
doubleSliderDefinition.setMin(0d);
doubleSliderDefinition.setMax(100d);
doubleSliderDefinition.setStep(1d);
doubleSliderDefinition.setPrecision(.1d);
return doubleSliderDefinition;
}
use of org.kie.workbench.common.forms.fields.shared.fieldTypes.basic.slider.definition.DoubleSliderDefinition in project kie-wb-common by kiegroup.
the class FieldRendererManagerImplTest method testFunctionallity.
@Test
public void testFunctionallity() {
testRendererFor(new CheckBoxFieldDefinition(), CheckBoxFieldRenderer.class, 1);
testRendererFor(new DatePickerFieldDefinition(), DatePickerFieldRenderer.class, 1);
testRendererFor(new EnumListBoxFieldDefinition(), EnumListBoxFieldRenderer.class, 1);
testRendererFor(new StringListBoxFieldDefinition(), StringListBoxFieldRenderer.class, 1);
testRendererFor(new IntegerListBoxFieldDefinition(), IntegerListBoxFieldRenderer.class, 1);
testRendererFor(new StringRadioGroupFieldDefinition(), StringRadioGroupFieldRenderer.class, 1);
testRendererFor(new IntegerRadioGroupFieldDefinition(), IntegerRadioGroupFieldRenderer.class, 1);
testRendererFor(new TextAreaFieldDefinition(), TextAreaFieldRenderer.class, 1);
testRendererFor(new IntegerSliderDefinition(), SliderFieldRenderer.class, 1);
testRendererFor(new DoubleSliderDefinition(), SliderFieldRenderer.class, 2);
testRendererFor(new MultipleSubFormFieldDefinition(), MultipleSubFormFieldRenderer.class, 1);
testRendererFor(new SubFormFieldDefinition(), SubFormFieldRenderer.class, 1);
testRendererFor(new TextBoxFieldDefinition(), TextBoxFieldRenderer.class, 1);
testRendererFor(new CharacterBoxFieldDefinition(), TextBoxFieldRenderer.class, 2);
testRendererFor(new DecimalBoxFieldDefinition(), DecimalBoxFieldRenderer.class, 1);
testRendererFor(new IntegerBoxFieldDefinition(), IntegerBoxFieldRenderer.class, 1);
testUnexistingRenderer(new PictureFieldDefinition());
}
Aggregations