Page History
...
Property | Description | Default value | Valid values |
---|---|---|---|
propertyBuilder | Concrete property Type and Handler definition. Optional. | ||
propertyHandler | Implementation class of PropertyHandler set to the propertyType used to set and get values in certain format. | ||
propertyType | Implementation class of Vaadin Property CustomPropertyType set as Field PropertyDatasource . |
Default behavior
Basic Property
By default BasicProperty
and BasicPropertyHandler
are used.
...
- Retrieve the
Item.property
if thisproperty
already exist on theItem
.property
is search based on the Field name defined as name property on the field definition. - Create the
Item.property
if thisproperty
do not yet exist on theItem
.
property
is created based on the following field definition:type
:property
will get the desiredtype
defaultValue
: if define, the string representation of the default field value is converted to a newtyped value.
Composite Property
Composite Property (CompositeProperty
) are used by the following fields:
CompositeField
SwitchableField
CompositeField
This field is by default bound with SimplePropertyCompositeHandler
. This handler will store each single field part of the CompositeField
as single suffixed property.
Assume that your CompositeField
is called 'composite' and contains two fields: a text field called 'simpleText' and a date field called 'simpleDate'. The values will be stored as following:
Advanced Tables - Table Plus | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
SwitchableField
This field is by default bound with SwitchableSimplePropertyCompositeHandler
. This handler will store each single field part of the SwitchableField
as single suffixed property.
Assume that your SwitchableField
is called 'switchable' and contains two fields: a text field called 'simpleText' and a date field called 'simpleDate'. The values will be stored as following:
Advanced Tables - Table Plus | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
List Property
List Property (ListProperty
) are used by the following field:
MultiField
MultiField
This field is by default bound with MultiValuesPropertyMultiHandler
. This handler will store each single field part of the MultiField
as a multiValue property (Basically a JCR multiValue property represented a a Typed List property).
i18n
All default implementation support the i18n definition.
If for example you have two language defined ('en', 'de') with 'en' set as default language:
Advanced Tables - Table Plus | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||
|
If you want to implement your own implementation of PropertyHandler
that support i18n, your implementation will need to:
- return
true
forPropertyHandler.hasI18NSupport()
- implement a compatible Magnolia i18n logic.
Implemented
Implemented Property
...