You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MultiListener.java 1.2KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. @ITMillApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.automatedtests.util;
  5. import com.vaadin.data.Container.ItemSetChangeEvent;
  6. import com.vaadin.data.Container.ItemSetChangeListener;
  7. import com.vaadin.data.Container.PropertySetChangeEvent;
  8. import com.vaadin.data.Container.PropertySetChangeListener;
  9. import com.vaadin.data.Property.ValueChangeEvent;
  10. import com.vaadin.data.Property.ValueChangeListener;
  11. import com.vaadin.ui.Button;
  12. import com.vaadin.ui.Button.ClickEvent;
  13. public class MultiListener implements Button.ClickListener,
  14. PropertySetChangeListener, ItemSetChangeListener, ValueChangeListener {
  15. public void buttonClick(ClickEvent event) {
  16. Log.debug("ClickEvent from " + event.getButton().getCaption());
  17. }
  18. public void containerPropertySetChange(PropertySetChangeEvent event) {
  19. Log.debug("containerPropertySetChange from " + event.getContainer());
  20. }
  21. public void containerItemSetChange(ItemSetChangeEvent event) {
  22. Log.debug("containerItemSetChange from " + event.getContainer());
  23. }
  24. public void valueChange(ValueChangeEvent event) {
  25. Log.debug("valueChange from " + event.getProperty());
  26. }
  27. }