Package org.openxava.annotations
Annotation Type View
-
@Retention(RUNTIME) @Target(TYPE) @Repeatable(Views.class) public @interface View
Defines with precision the format of the user interface or view.Applies to entities.
Example:
@Entity @View(members= "year, number, date, paid;" + "discounts [" + " customerDiscount, customerTypeDiscount, yearDiscount;" + "];" + "comment;" + "customer { customer }" + "details { details }" + "amounts { amountsSum; vatPercentage; vat }" + "deliveries { deliveries }" ) public class Invoice { ...
- Author:
- Javier Paniza
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
extendsView
Name of a view to be extended by this one.java.lang.String
members
Indicates the members to display and its layout in the user interface.java.lang.String
name
This name identifies the view.
-
-
-
Element Detail
-
name
java.lang.String name
This name identifies the view.It can be used in other OpenXava places (for example in application.xml) or from another entities.
This name is referenced fromforViews
ornotForViews
of other OpenXava annotations.
If the view has no name then the view is assumed as the default one, that is the natural form to display an object of this type.- Default:
- ""
-
-
-
members
java.lang.String members
Indicates the members to display and its layout in the user interface.Use comma (,) for separating elements, and semicolon (;) for new line.
You can use section {} and group [] elements for layout purposes; or actions ( MyController.myAction() ) element for showing a link associated to a custom action inside your view.- Default:
- ""
-
-