Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 DateField 的 hava 和 GXT 表单。当我通过调用表单面板上的 clear() 方法清除表单时,我的日期字段被清除并保持为空。但我希望日期字段在清除后显示当前日期。我怎样才能做到这一点?
从 DateField 派生一个自定义组件并执行以下操作:
@Override public void clear() { super.clear(); setValue(new Date()); }