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