Package com.onec.ui
Class RelatedListBuilder
java.lang.Object
com.onec.ui.RelatedListBuilder
Builds one
RelatedList panel for a catalog editor. Obtained from
EntityConfigBuilder.relatedList(String, Class) inside an EntityView.fields(com.onec.ui.EntityConfigBuilder)
lambda.
Chain via(String) / display(String) / columns(String...);
call relatedList(String, Class) to add another panel or field(String) to
switch back to per-field hints on the same entity.
-
Method Summary
Modifier and TypeMethodDescriptionExtra join-row fields to render as columns (e.g.TheReffield on the join catalog shown (and picked) per row — the "other side" of the relationship.Switch back to configuring a plain field on the same entity.Hide this panel in the read/detail view, keeping it only in the edit form.Heading for the panel; blank derives one from the panel name.relatedList(String name, Class<?> joinCatalog) Add another related-list panel on the same entity.TheReffield on the join catalog that scopes rows to the record being edited — the back-reference to this catalog.
-
Method Details
-
via
TheReffield on the join catalog that scopes rows to the record being edited — the back-reference to this catalog. Required. -
display
TheReffield on the join catalog shown (and picked) per row — the "other side" of the relationship. Resolved to its description for display and used as the add-row picker's target catalog. Required. -
columns
Extra join-row fields to render as columns (e.g. aroleorsortOrderattribute on the join catalog). When unset, the panel shows just thedisplayref. Thedisplayref is always rendered as the row's primary (name) column whether or not it appears here, so an explicit list adds columns on top of the name rather than replacing it; listing the display field is fine and is not duplicated. A field name that matches no attribute on the join catalog (a typo, or a field on a different catalog) is dropped with aWARNat metadata resolution. -
label
Heading for the panel; blank derives one from the panel name. -
hideInDetail
Hide this panel in the read/detail view, keeping it only in the edit form. By default a related list renders read-only in the detail view (so the roster is visible without entering edit mode) and editable in the form; call this to opt a panel out of the detail render. -
field
Switch back to configuring a plain field on the same entity.
-