@Documented @Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) public @interface MetaObject
This describes how an Object is to be shown when it is displayed in a (Data)Table (see DataTable
and BasicRowRenderer). The most important thing it does is to specify which properties of the
object should be shown in columns of the table; every property mentioned in the defaultColumns() list
becomes a column in the Table shown (provided the columns are not joined). In addition, this can also specify
a default "sort" property; when set the table will be shown initially sorted on that property provided
the data model supports sorting.
This annotation can be used on a class itself; then it defines the default wherever that class is used in a table. You can also add it to some property in which case it "overrides" the definition done at "class" level for tables that are shown using that single property. This has not yet been used so success is questionable...
| Modifier and Type | Required Element and Description |
|---|---|
MetaDisplayProperty[] |
defaultColumns
The list of properties to show in the table, and their conversion, display size etc characteristics.
|
| Modifier and Type | Optional Element and Description |
|---|---|
String |
defaultSortColumn
Define a property to sort on by default.
|
SortableType |
defaultSortOrder
If a
defaultSortColumn() is defined, this defines the initial sort direction (ascending, descending). |
MetaSearchItem[] |
searchProperties
The list of properties to use as "search properties" in the lookup form and/or fast search shown when
an instance is searched for.
|
MetaDisplayProperty[] |
selectedProperties
The list of properties that should be shown in the "display part" of a control like
LookupInput
when a single instance is selected. |
Class<? extends INodeContentRenderer<?>> |
selectedRenderer
Set to define your own renderer to render the display size of the field.
|
public abstract MetaDisplayProperty[] defaultColumns
public abstract Class<? extends INodeContentRenderer<?>> selectedRenderer
#properties() is ignored.public abstract MetaDisplayProperty[] selectedProperties
LookupInput
when a single instance is selected. If not present this defaults to the MetaObject properties
for the target datatype.public abstract MetaSearchItem[] searchProperties
public abstract String defaultSortColumn
defaultSortOrder().public abstract SortableType defaultSortOrder
defaultSortColumn() is defined, this defines the initial sort direction (ascending, descending). It defaults to ascending.Copyright © 2017 etc.to. All rights reserved.