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.
要件は単純ですが、これに時間がかかっているように感じます。gwt gxt コンボボックスに折りたたみイベントを追加しようとしています。バージョン 2.1 の gwt を使用しています。どんな小さなスニペットでも役に立ちます。私が持っているライブラリのバージョンは、addCollapsehandler イベントをサポートしていません。
ありがとう。
これは、それを行う通常の方法です。
Listener<FieldEvent> collapseListener = new Listener<FieldEvent>() { @Override void handleEvent(FieldEvent fe) { // collapse handler here } } comboBox.addListener(Events.Collapse, collapseListener);