Closed GoogleCodeExporter closed 9 years ago
Please do not post issues without a runnable test case. Thanks.
Original comment by smartgwt...@gmail.com
on 27 Apr 2011 at 12:31
sorry ! I hope That's OK :
public void onModuleLoad() {
Test();
}
private void Test() {
VLayout vLayout = new VLayout(10);
final TimeItem time1 = new TimeItem("time1");
time1.setUseMask(true);
time1.setDefaultValue("00:00");
final TimeItem time2 = new TimeItem("time2");
time2.setUseMask(true);
time2.setDefaultValue("00:00");
ButtonItem getTimeButton = new ButtonItem("getTimeButton", "Get Time");
getTimeButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
Date date1 = (Date)time1.getValue();
Date date2 = (Date)time2.getValue();
SC.say(date1 + " - " + date2);
}
});
DynamicForm timeForm = new DynamicForm();
timeForm.setFields(time1, time2, getTimeButton);
vLayout.addMember(timeForm);
vLayout.draw();
}
Original comment by alessand...@gmail.com
on 27 Apr 2011 at 12:36
This is now a duplicate of 579.
http://code.google.com/p/smartgwt/issues/detail?id=579
If a bug is marked Invalid due to lack of a test case, don't file another bug.
We can reopen it when you add the test case.
However since you've now created yet another bug this one will remain closed.
Original comment by smartgwt...@gmail.com
on 27 Apr 2011 at 1:05
Original issue reported on code.google.com by
alessand...@gmail.com
on 27 Apr 2011 at 9:34Attachments: