简体   繁体   中英

GWT ComboBox value change handler

I have a GWT-EXT ComboBox having some 3-5 value in my project.
Can anyboy help me to find value change event(or selection event)?
Or any other way to get notified with GWT-EXT ComboBox state change.

If you are reffering to Listbox

add ChangeHandler

dropBox.addChangeHandler(new ChangeHandler() {
      public void onChange(ChangeEvent event) {
        //do something
      }
    });

Here is the live demo, source code.

lambda expression

field.addChangedHandler(handler -> {
    //your code
})

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM