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.

ClientCriterion.java 1017B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. @ITMillApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.event.dd.acceptcriteria;
  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. import com.vaadin.ui.ClientWidget;
  11. /**
  12. * An annotation type used to point the client side counterpart for server side
  13. * a {@link AcceptCriterion} class. Usage is pretty similar to
  14. * {@link ClientWidget} which is used with Vaadin components that have a
  15. * specialized client side counterpart.
  16. * <p>
  17. * Annotations are used at GWT compilation phase, so remember to rebuild your
  18. * widgetset if you do changes for {@link ClientCriterion} mappings.
  19. *
  20. * @since 6.3
  21. */
  22. @Retention(RetentionPolicy.RUNTIME)
  23. @Target(ElementType.TYPE)
  24. public @interface ClientCriterion {
  25. /**
  26. * @return the client side counterpart for the annotated criterion
  27. */
  28. Class<? extends VAcceptCriterion> value();
  29. }