@Documented @Retention(value=RUNTIME) public @interface MetaDisplayProperty
| Modifier and Type | Required Element and Description |
|---|---|
String |
name
The name of the property to show.
|
| Modifier and Type | Optional Element and Description |
|---|---|
Class<? extends IConverter<?>> |
converterClass
Define a Converter class to use to convert the value from the property to a string.
|
String |
defaultLabel
When set this overrides the default label as set by the property metadata.
|
SortableType |
defaultSortable
When set, this defines this field as being a field that a table can show a "sort button" on.
|
int |
displayLength
An indication of the display length to use for this field, in characters.
|
String |
join
When present, this will force a join of this property and the next one specified in the display property
list, and the string specified here will be used as a "separator" between the two values.
|
YesNoType |
noWrap |
public abstract String name
public abstract String defaultLabel
public abstract SortableType defaultSortable
MetaObject.defaultSortColumn(). The "default" in this name refers to the default order (ascending or
descending).public abstract int displayLength
MetaProperty.length() or any JPA Annotation like Column#length().public abstract YesNoType noWrap
public abstract Class<? extends IConverter<?>> converterClass
MetaProperty.converterClass()
setting or by the default conversions registered with the conversion factory.public abstract String join
When present, this will force a join of this property and the next one specified in the display property list, and the string specified here will be used as a "separator" between the two values. The join means that the two (or more) properties are joined together in a single table column, as a single string. A typical use case for instance is to create a single visible table column for something like Address, where the address is displayed as:
Copyright © 2017 etc.to. All rights reserved.