开发者

GXT date field - show date after clearing

I hava and 开发者_开发百科GXT form with a DateField. When I clear the form by invoking the clear() method on my form panel, my date field is cleared and stays empty. But I want the date field to display current date after clearing. How can I do this?


Derive a custom component from DateField and do this:

@Override
public void clear() {
    super.clear();
    setValue(new Date());
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜