Coverage Report - org.trails.descriptor.annotation.PropertyDescriptor
 
Classes in this File Line Coverage Branch Coverage Complexity
PropertyDescriptor
N/A 
N/A 
0
 
 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  
          * Specifies if a property should appear on the list page.
 21  
          *
 22  
          * @return
 23  
          */
 24  
         boolean summary() default true;
 25  
 
 26  
         /**
 27  
          * Specifies if a property should appear on both edit and list pages
 28  
          *
 29  
          * @return
 30  
          * @see org.trails.descriptor.IDescriptor#isHidden()
 31  
          */
 32  
         boolean hidden() default false;
 33  
 
 34  
 
 35  
         boolean readOnly() default false;
 36  
 
 37  
         /**
 38  
          * Specifies if property should appear on search pages
 39  
          *
 40  
          * @return
 41  
          */
 42  
         boolean searchable() default true;
 43  
 
 44  
         /**
 45  
          * Specifies if property can contain html.
 46  
          *
 47  
          * @return
 48  
          */
 49  
         boolean richText() default false;
 50  
 
 51  
         /**
 52  
          * Override the default label text
 53  
          *
 54  
          * @return
 55  
          */
 56  
         String displayName() default "";
 57  
 
 58  
         String shortDescription() default "";
 59  
 
 60  
         /**
 61  
          * A format pattern string
 62  
          *
 63  
          * @return
 64  
          * @see java.text.SimpleDateFormat
 65  
          * @see java.text.NumberFormat
 66  
          */
 67  
         String format() default "no_format";
 68  
 
 69  
         int index() default IPropertyDescriptor.UNDEFINED_INDEX;
 70  
 }