001    package org.tynamo.descriptor.annotation.beaneditor;
002    
003    import org.apache.tapestry5.ioc.annotations.AnnotationUseContext;
004    import org.apache.tapestry5.ioc.annotations.UseWith;
005    import org.tynamo.descriptor.annotation.handlers.DefaultBeanModelAnnotationHandler;
006    import org.tynamo.descriptor.annotation.handlers.HandledBy;
007    
008    import java.lang.annotation.*;
009    
010    @Target(ElementType.TYPE)
011    @Retention(RetentionPolicy.RUNTIME)
012    @Documented
013    @UseWith(AnnotationUseContext.BEAN)
014    @HandledBy(DefaultBeanModelAnnotationHandler.class)
015    public @interface DefaultBeanModel
016    {
017    
018            /**
019             * A comma-seperated list of property names to be added to the BeanModel. Cells for added columns will be blank unless
020             * a cell override is provided.
021             */
022    //      String add() default "";
023    
024            /**
025             * A comma-separated list of property names to be removed from the BeanModel  . The names are case-insensitive.
026             */
027            String exclude() default "";
028    
029            /**
030             * A comma-separated list of property names to be retained from the BeanModel. Only these properties will be retained,
031             * and the properties will also be reordered. The names are case-insensitive.
032             */
033            String include() default "";
034    
035            /**
036             * A comma-separated list of property names indicating the order in which the properties should be presented. The names
037             * are case insensitive. Any properties not indicated in the list will be appended to the end of the display order.
038             * <p/>
039             * * @see org.apache.tapestry5.beaneditor.ReorderProperties
040             */
041            String reorder() default "";
042    
043    }