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 を使用して GXT フォームを作成しました。フォーム パネルで clear() メソッドを呼び出してフォームをクリアすると、日付フィールドがクリアされ、空のままになります。しかし、クリア後に日付フィールドに現在の日付を表示したい。これどうやってするの?
DateField からカスタム コンポーネントを派生させ、次のようにします。
@Override public void clear() { super.clear(); setValue(new Date()); }