All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openxava.annotations.LabelStyles Maven / Gradle / Ivy

package org.openxava.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * A group of @{@link LabelStyle} associated to the same member. 

* * Applies to properties and references with descriptions list.

* * It allows assigning several styles or to define a value different for @{@link LabelStyle} in each view.
* Example: *

 *  @LabelStyle({
 *    @LabelStyle(value="bold-label" ),
 *    @LabelStyle(forViews="Complete", value="italic-label")
 *  })
 * 
* You can apply each style in a different view (if you put forViews) or you can apply several styles in the same property (if you don't put forViews).
* * Since 6.1 @LabelStyle is repeatable, so you don't need to use @LabelStyles any more. * * Create on 07/05/2010 (12:37:01) * @author Ana Andres */ @Retention(RetentionPolicy.RUNTIME) @Target({ ElementType.FIELD, ElementType.METHOD }) public @interface LabelStyles { LabelStyle [] value(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy