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.

AcceptCriterion.java 930B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. @VaadinApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.shared.ui.dd;
  5. import java.lang.annotation.ElementType;
  6. import java.lang.annotation.Retention;
  7. import java.lang.annotation.RetentionPolicy;
  8. import java.lang.annotation.Target;
  9. import com.vaadin.terminal.gwt.client.ui.dd.VAcceptCriterion;
  10. /**
  11. * An annotation type used to point the server side counterpart for client side
  12. * a {@link VAcceptCriterion} class.
  13. * <p>
  14. * Annotations are used at GWT compilation phase, so remember to rebuild your
  15. * widgetset if you do changes for {@link AcceptCriterion} mappings.
  16. *
  17. * Prior to Vaadin 7, the mapping was done with an annotation on server side
  18. * classes.
  19. *
  20. * @since 7.0
  21. */
  22. @Retention(RetentionPolicy.RUNTIME)
  23. @Target(ElementType.TYPE)
  24. public @interface AcceptCriterion {
  25. /**
  26. * @return the class of the server side counterpart for the annotated
  27. * criterion
  28. */
  29. Class<?> value();
  30. }