|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=TYPE) public @interface Tab
Define the behavior for tabular data presentation (List mode).
Applies to entities.
Example:
@Tab(name="ActiveYear",
filter=ActiveYearFilter.class,
properties="year, number, customer.number, customer.name, amountsSum, vat, detailsCount, paid, importance",
baseCondition="${year} = ?"
)
| Optional Element Summary | |
|---|---|
java.lang.String |
baseCondition
Condition to be fulfilled by the displayed data. |
java.lang.String |
defaultOrder
To specify the initial order for data. |
java.lang.Class |
filter
Allows to define programmatically some logic to apply to the values entered by user when he filters the list data. |
java.lang.String |
name
You can define several tabs in a entity, and set a name for each one. |
java.lang.String |
properties
The list of properties to show initially. |
RowStyle[] |
rowStyles
A simple way to specify a different visual style for some rows. |
public abstract java.lang.String name
This name is used to indicate the tab that you want to use (usually in application.xml).
public abstract RowStyle[] rowStyles
Normally to emphasize rows that fulfill certain condition.
public abstract java.lang.String properties
Can be qualified (that is you can specify referenceName.propertyName at any depth level).
public abstract java.lang.Class filter
public abstract java.lang.String baseCondition
It's added to the user condition if needed.
public abstract java.lang.String defaultOrder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||