| 1 |
|
package org.trails.descriptor.annotation; |
| 2 |
|
|
| 3 |
|
import java.lang.annotation.ElementType; |
| 4 |
|
import java.lang.annotation.Retention; |
| 5 |
|
import java.lang.annotation.RetentionPolicy; |
| 6 |
|
import java.lang.annotation.Target; |
| 7 |
|
|
| 8 |
|
import org.trails.descriptor.IPropertyDescriptor; |
| 9 |
|
|
| 10 |
|
@Retention(RetentionPolicy.RUNTIME) |
| 11 |
|
@Target({ElementType.FIELD, ElementType.METHOD}) |
| 12 |
|
@DescriptorAnnotation(PropertyDescriptorAnnotationHandler.class) |
| 13 |
|
public @interface PropertyDescriptor |
| 14 |
|
{ |
| 15 |
|
public static final String DEFAULT_displayName = ""; |
| 16 |
|
public static final int DEFAULT_index = IPropertyDescriptor.UNDEFINED_INDEX; |
| 17 |
|
public static final String DEFAULT_format = "no_format"; |
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
|
| 22 |
|
|
| 23 |
|
|
| 24 |
|
boolean summary() default true; |
| 25 |
|
|
| 26 |
|
|
| 27 |
|
|
| 28 |
|
|
| 29 |
|
|
| 30 |
|
|
| 31 |
|
|
| 32 |
|
boolean hidden() default false; |
| 33 |
|
|
| 34 |
|
|
| 35 |
|
boolean readOnly() default false; |
| 36 |
|
|
| 37 |
|
|
| 38 |
|
|
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 42 |
|
boolean searchable() default true; |
| 43 |
|
|
| 44 |
|
|
| 45 |
|
|
| 46 |
|
|
| 47 |
|
|
| 48 |
|
|
| 49 |
|
boolean richText() default false; |
| 50 |
|
|
| 51 |
|
|
| 52 |
|
|
| 53 |
|
|
| 54 |
|
|
| 55 |
|
|
| 56 |
|
String displayName() default ""; |
| 57 |
|
|
| 58 |
|
String shortDescription() default ""; |
| 59 |
|
|
| 60 |
|
|
| 61 |
|
|
| 62 |
|
|
| 63 |
|
|
| 64 |
|
|
| 65 |
|
|
| 66 |
|
|
| 67 |
|
String format() default "no_format"; |
| 68 |
|
|
| 69 |
|
int index() default IPropertyDescriptor.UNDEFINED_INDEX; |
| 70 |
|
} |