Package org.openxava.annotations
Annotation Type RowStyle
-
@Repeatable(RowStyles.class) @Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface RowStyle
For indicating the row style forTab
s and collections .Example for Tab:
@Tab( rowStyles=@RowStyle(style="row-highlight", property="type", value="steady") ) public class Customer { ...
Example for Collection:@OneToMany(mappedBy="seller") @ListProperties("number, name, remarks, relationWithSeller, seller.level.description, type") @RowStyle(style="row-highlight", property="type", value="steady") private Collection
In this case you are saying that the object which property type has the value steady will use the style row-highlight. The style has to be defined in the CSS stylesheet. The row-highlight style are already defined in OpenXava, but you can define more.customers;
You can note as property 'type' is also listed in ListProperties, that is you must use properties displayed in User Interface.
It doesn't work with @ElementCollection.- Author:
- Javier Paniza
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
forViews
List of comma separated view names where this annotation applies.java.lang.String
notForViews
List of comma separated view names where this annotation does not apply.
-
-
-
-
forViews
java.lang.String forViews
List of comma separated view names where this annotation applies.forViews
has no effect when@RowStyle
is used for Tabs. Exclusive with notForViews.
If both forViews and notForViews are omitted then this annotation apply to all views.
You can use the string "DEFAULT" for referencing to the default view (the view with no name).- Default:
- ""
-
-
-
notForViews
java.lang.String notForViews
List of comma separated view names where this annotation does not apply.notforViews
has no effect when@RowStyle
is used for Tabs. Exclusive with forViews.
If both forViews and notForViews are omitted then this annotation apply to all views.
You can use the string "DEFAULT" for referencing to the default view (the view with no name).- Default:
- ""
-
-