Annotation Type UICustomField
-
@Retention(RUNTIME) @Target(METHOD) @LinkkiBoundProperty @LinkkiAspect(CustomFieldAspectCreator.class) public @interface UICustomField
UICustomFieldcan include other, more individual controls. The propertyuiControl()selects the control class. If that class inheritsHasListDataViewthe values can be included fromAvailableValuesType.UICustomFieldonly supports controls which define an constructor without parameters.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description AvailableValuesTypecontentSpecifies the source of the available values, the content of the custom field if it supports a content.EnabledTypeenabledDefines if an UI-Component is editable, using values ofEnabledTypeStringlabelProvides a description label next to the UI-ElementStringmodelAttributeThe name of a property in the class of the boundModelObjectto use model bindingStringmodelObjectName of the model object that is to be bound if multiple model objects are included for model bindingRequiredTyperequiredRequired() marks mandatory fields visuallyVisibleTypevisibleSpecifies if a component is shown, using values ofVisibleTypeStringwidthSpecifies the width of the field using a number and a CSS unit, for example "5em" or "50%".
-
-
-
-
uiControl
Class<? extends com.vaadin.flow.component.Component> uiControl
The class implementing the custom field. This class has to have a default constructor.
-
-
-
label
String label
Provides a description label next to the UI-Element- Default:
- "derived.by.linkki"
-
-
-
modelObject
String modelObject
Name of the model object that is to be bound if multiple model objects are included for model binding- Default:
- "modelObject"
-
-
-
modelAttribute
String modelAttribute
The name of a property in the class of the boundModelObjectto use model binding- Default:
- ""
-
-
-
enabled
EnabledType enabled
Defines if an UI-Component is editable, using values ofEnabledType- Default:
- org.linkki.core.defaults.ui.aspects.types.EnabledType.ENABLED
-
-
-
required
RequiredType required
Required() marks mandatory fields visually- Default:
- org.linkki.core.defaults.ui.aspects.types.RequiredType.NOT_REQUIRED
-
-
-
visible
VisibleType visible
Specifies if a component is shown, using values ofVisibleType- Default:
- org.linkki.core.defaults.ui.aspects.types.VisibleType.VISIBLE
-
-
-
width
String width
Specifies the width of the field using a number and a CSS unit, for example "5em" or "50%".This value is set to empty String by default which means it is undefined and the actual width depends on the layout.
- See Also:
HasSize.setWidth(String)
- Default:
- ""
-
-
-
content
AvailableValuesType content
Specifies the source of the available values, the content of the custom field if it supports a content. May be a list of selectable items.- See Also:
AvailableValuesType
- Default:
- org.linkki.core.defaults.ui.aspects.types.AvailableValuesType.ENUM_VALUES_INCL_NULL
-
-