@Documented @Retention(value=RUNTIME) @Target(value={METHOD,FIELD}) public @interface FieldPosition
ReflectionFormPanel
by specifying the membership in a group with the option to specify the
position within the group.
richtercloud.validation.tools.FieldRetriever make sure that
everything makes sense based on validation.
There might be a usecase for referencing fields which don't belong to a field
group from within a field of a field group or outside, but for ease sake it's
not supported, i.e. all ordering between groups takes place in
FieldGroup annotations and all ordering inside groups with
afterFields() and beforeFields().
If a fieldGroup() is specified afterFields()
and beforeFields() have to reference fields inside the
group only.
FieldPositions without a fieldGroup() reference and both an
empty value for afterFields() and beforeFields() are
invalid because they have no use.FieldGroups| Modifier and Type | Required Element and Description |
|---|---|
String |
fieldGroup
A reference to the group the field belongs to.
|
| Modifier and Type | Optional Element and Description |
|---|---|
String[] |
afterFields
The list of field names which should occur before the annotated field.
|
String[] |
beforeFields
The list of field names which should occur after the annotated field.
|
public abstract String fieldGroup
public abstract String[] afterFields
public abstract String[] beforeFields
Copyright © 2018. All rights reserved.