0
"Events.ON_CHANGING"のためのオートボックスComboboxとEventListenerがあります。私の問題は、一度しか働かないことです。Combobox ON_CHANGINGイベントが1回発生しました
例では、検索を行い、値を消去し、再入力し、イベントは発生しません。私は別のコンポーネントをクリックして、別の時間を入力するためにコンボボックスを再度クリックする必要があります。
マイコード:解決
public class ComboUsuariosComponent extends Combobox {
public ComboUsuariosComponent(String width, boolean buttonVisible, boolean autodrop) {
this.setButtonVisible(buttonVisible);
this.setAutodrop(autodrop);
this.setWidth(width);
this.addEventListener(Events.ON_CHANGING, new GrillaComboOnChange());
}
private class GrillaComboOnChange implements EventListener<Event>{
@Override
public void onEvent(Event event) throws Exception {
finUsers(getValue());
}
}
}