How to differentiate an event source at several ComboBoxes?

I welcome!

At me, let us assume, I have defined a question a little ComboBoxes and I want to listen their one listener. How to differentiate an event source?



ComboBox firstComboBox = new ComboBox("  ");
firstComboBox.addListener(this);

ComboBox secondComboBox = new ComboBox("  ");
secondComboBox.addListener(this);
...
ComboBox nComboBox = new ComboBox("  ");
nComboBox.addListener(this);

Property.ValueChangeListener listener = new Property.ValueChangeListener() { 
   public void valueChange(ValueChangeEvent event) { 
   // ???  
   }
};
                                          

Thanks.

Alternate -


firstComboBox.addListener(new Property.ValueChangeListener() {
   public void valueChange(ValueChangeEvent event) {
       // TODO Auto-generated method stub				
   }
});

Use ValueChangeEvent.getProperty() - the property is the ComboBox.

I welcome you, Henri Sara!

Thanks big for the answer! :smiley: