If you change the values of the TimeItems, and click the button, nothing happens.
TextItems, DateItems, etc get cleared, only TimeItems not. Using 6.0p power 6.0-p20160813
TextItems, DateItems, etc get cleared, only TimeItems not. Using 6.0p power 6.0-p20160813
Code:
public class TestingModule implements EntryPoint { public void onModuleLoad() { final DynamicForm df = new DynamicForm(); df.setDataSource("testTable"); TimeItem ti1 = new TimeItem("f_von"); ti1.setRequired(true); ti1.setShowSecondItem(false); ti1.setUse24HourTime(true); ti1.setUseTextField(false); TimeItem ti2 = new TimeItem("f_bis"); ti2.setRequired(true); ti2.setShowSecondItem(false); ti2.setUse24HourTime(true); ti2.setUseTextField(false); df.setFields(ti1, ti2); IButton click = new IButton("click me"); click.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { df.clearValues(); } }); VLayout layout = new VLayout(10); layout.addMembers(df, click); layout.setWidth100(); layout.setHeight100(); layout.draw(); } }
Comment