Thursday, August 30, 2012

How to get combobox from handler change event method?

I have several GXT SimpleComboBoxes to which I've added a ValueChangeHandler.  
        combo1.addValueChangeHandler( new ValueChangeHandler<String>() {                  @Override              public void onValueChange( ValueChangeEvent<String> event ) {                  ...              }          });

Is there a way to get the combo box (here, "combo1") that the handler is responding to from within onValueChange() ?  Basically, I'm going to be adding the same handler to many combo boxes, and I want to be able to figure out which one I have and do stuff to them after the user makes a selection.

Thanks for any suggestions.

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment