1 package org.vectomatic.dom.svg.ui;
2
3 import java.lang.annotation.Documented;
4 import java.lang.annotation.ElementType;
5 import java.lang.annotation.Retention;
6 import java.lang.annotation.RetentionPolicy;
7 import java.lang.annotation.Target;
8
9 import org.vectomatic.dev.svg.impl.gen.ExternalSVGResourceGenerator;
10
11 import com.google.gwt.resources.client.ResourceCallback;
12 import com.google.gwt.resources.client.ResourceException;
13 import com.google.gwt.resources.client.ResourcePrototype;
14 import com.google.gwt.resources.ext.DefaultExtensions;
15 import com.google.gwt.resources.ext.ResourceGeneratorType;
16
17
18
19
20
21
22
23
24
25 @DefaultExtensions(value = {".svg"})
26 @ResourceGeneratorType(ExternalSVGResourceGenerator.class)
27 public interface ExternalSVGResource extends ResourcePrototype {
28
29
30
31 @Documented
32 @Retention(RetentionPolicy.RUNTIME)
33 @Target(ElementType.METHOD)
34 public @interface Validated {
35
36
37
38
39
40 boolean validated() default true;
41 }
42
43
44
45
46 void getSvg(ResourceCallback<SVGResource> callback) throws ResourceException;
47 }