0
"Events.ON_CHANGING"에 대한 자동 병합 Combobox 및 EventListener가 있습니다. 내 문제는 그것이 한 번만 작동한다는 것입니다.Combobox ON_CHANGING 이벤트가 한 번만 발생했습니다
예를 들어 검색을 입력하고 값을 지우고 다시 입력하고 이벤트가 발생하지 않습니다. 다른 구성 요소를 클릭 한 다음 다른 시간을 입력하려면 콤보 상자를 다시 클릭해야합니다.
내 코드 :
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());
}
}
}