Package com.onec.ui
Class FieldHintBuilder
java.lang.Object
com.onec.ui.FieldHintBuilder
Per-field hint builder. Obtained from
EntityConfigBuilder.field(String)
inside a lambda passed to SectionBuilder.catalog/document/register.
Chain field-level setters; call field(String) to switch to another
field on the same entity. Anything not set falls through to @UiHint
(deprecated) or the scanner default.
-
Method Summary
Modifier and TypeMethodDescriptionSwitch to configuring another field on the same entity.How this field's value is displayed in tables (list) and the detail surface.Optional help text for this field, surfaced in the UI as a hoverable?icon next to the field's label (on the edit form, list column header, and read-only detail view).order(int order) placeholder(String placeholder) Placeholder text shown in this field's empty input on the edit form.visibleInDetail(boolean v) visibleInForm(boolean v) visibleInList(boolean v) Override the control used to edit this field.
-
Method Details
-
order
-
group
-
width
-
widget
Override the control used to edit this field. Built-in hints include"switch"/"toggle"(boolean),"textarea","map"/"geo"(a "lat,lng" string), and the media widgets"image"/"photo","avatar"(small round),"images"/"gallery"/"photos"(several), and"file"(any type). The media widgets stream the chosen file toPOST /api/mediaand store only the returned reference URL, so a plain String attribute holds it — seecom.onec.ui.media. -
placeholder
Placeholder text shown in this field's empty input on the edit form. -
format
How this field's value is displayed in tables (list) and the detail surface. The hint is interpreted by value type:- Dates / date-times — a date pattern, e.g.
"dd-MM-yy","dd/MM/yyyy HH:mm"(uppercaseD/Yare accepted as day/year). - Numbers —
"integer","decimal","percent","currency"(or"currency:EUR"), or a decimal pattern like"#,##0.00".
widget(String)for that). - Dates / date-times — a date pattern, e.g.
-
hint
Optional help text for this field, surfaced in the UI as a hoverable?icon next to the field's label (on the edit form, list column header, and read-only detail view). Keep it short — a sentence explaining what the field means or how to fill it in. Blank (default) shows no icon. -
hideInList
-
hideInForm
-
hideInDetail
-
visibleInList
-
visibleInForm
-
visibleInDetail
-
field
Switch to configuring another field on the same entity.
-