1
2
3
4
5
6
7
8
9
10
11
12
13 package com.eviware.x.form.support;
14
15 import java.lang.annotation.ElementType;
16 import java.lang.annotation.Retention;
17 import java.lang.annotation.RetentionPolicy;
18 import java.lang.annotation.Target;
19
20 /***
21 * A field in an AForm
22 *
23 * @author ole.matzura
24 */
25
26 @Retention( RetentionPolicy.RUNTIME )
27 @Target( ElementType.FIELD )
28 public @interface AField
29 {
30 public enum AFieldType
31 {
32 BOOLEAN, STRING, FILE, FOLDER, INT, ENUMERATION, PASSWORD, FILELIST, RADIOGROUP, STRINGAREA, MULTILIST, STRINGLIST, TABLE, ACTION, COMPONENT, SEPARATOR
33 }
34
35 public String name() default "";
36
37 public String description();
38
39 public AFieldType type() default AFieldType.STRING;
40
41 public String group() default "";
42
43 public String[] values() default "";
44
45 public String defaultValue() default "";
46
47 boolean enabled() default true;
48 }