Java Vaadin:设置浮点步进器的空白值

Java Vaadin:设置浮点步进器的空白值,java,vaadin,Java,Vaadin,我使用vaadin浮点步进器设置值。输入一些值后,我想清除步进器,但它返回以前的值(我的意思是使用UI)。但是,如果不输入任何内容,则允许空白值。如何重新设置空白值 private FloatStepper weightFrom = new FloatStepper("Weight from"); weightFrom.setWidth("100%"); weightFrom.setMinValue(0f); weightFrom.setValue(null); weightFrom.set

我使用vaadin浮点步进器设置值。输入一些值后,我想清除步进器,但它返回以前的值(我的意思是使用UI)。但是,如果不输入任何内容,则允许空白值。如何重新设置空白值

private FloatStepper weightFrom = new FloatStepper("Weight from");  
weightFrom.setWidth("100%");
weightFrom.setMinValue(0f);
weightFrom.setValue(null);
weightFrom.setImmediate(true);
privateLayout.addComponent(weightFrom)