io.overcoded.grid.annotation.DisplayValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grid-annotation Show documentation
Show all versions of grid-annotation Show documentation
An annotation library to help generate views, dialogs, and grids.
package io.overcoded.grid.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* With DisplayValue we can define how we want to display
* the annotated type on ui elements, e.g. in a dropdown.
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface DisplayValue {
/**
* Describes how to display a complex data type in a column or in a label.
*
* As our grid project designed to use with Spring Boot, Hibernate and Vaadin,
* DisplayValue designed to use with SPeL.
* If an element starts with ', that means that should be handled as string
* otherwise refers to a variable, which should handled by SPeL.
*
* @return display value array
*/
String[] value();
}