Class ViewTable
data-juneau-view table.
Table authoring is FTL <@card type="datatables"> (JSON5 catalog).
This type is the stable set of marker attributes and class names the runtime and consumer chrome still
stamp or select: CSRF on a shell ancestor, layout hint, selection/bulk markers, row-detail template
attributes, and the named overflow class. It is not a Java page-authoring factory.
See Also:
- Since:
- 10.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringMarker attribute stamped when aBulkMutateDefis declared; pairs with theBULK_SIDECAR_ID_PREFIXsidecar carrying the actual bulk-action list.static final StringPrefix of the bulk-actions sidecar<script>element id:juneau-view-bulk:<viewId>.static final StringPer-cell opt-out from the clip/ellipsis default:.juneau-view-table td.juneau-cell-wraprestores the pre-10.0 wrapping behavior.static final StringAttribute the CSRF token is stamped into on a shell ancestor (typically<main>) sojuneau-views.jscan attach it to mutating requests.static final StringAttribute carrying anActionRefid on a write button.static final StringAttribute on the hidden node a gated action's disabled reason is painted into, carrying that action's id.static final StringAttribute carrying anActionRef's row-state rules as a JSON array, in the author's declared order.static final StringAttribute carrying the row-detail contract version on the row-detail template.static final StringCSS class on the dedicated row-expand body cell (and the DataTables columnclassName).static final StringMarker on a client-painted field-grid value slot (fieldGridcatalogdatakey).static final StringAttribute carrying aFieldFormatwire token.static final StringAttribute carrying a field-grid render id.static final StringAttribute carrying a field-grid href template.static final StringAttribute carrying JSON-encodedRender.meta.static final StringMarker on the optional detail-panel header (title + header actions).static final StringAttribute carrying the header icon registry name.static final StringAttribute carrying aSafeAction.wire()token.static final StringHistorical section-id marker; no longer emitted (row-detail bodies are one region).static final StringMarker attribute on the row-detail<template>sibling of the view table.static final StringCSS class on the dedicated row-expand header cell so the expander glyph never shares the first data column.static final StringMarker on the header title element filled from a{field}template.static final StringComma-separatedRegionDef.titleFieldsallowlist stamped on the row-detail<template>.static final StringAttribute carrying the header title template (placeholders filled at expand time).static final StringAttribute carrying the server-stamped expand GET path template on the row-detail template.static final StringFull-real-estate layout hint.static final StringThe onlyLAYOUT_ATTRvalue in v1: request full horizontal real estate for the wrapper's content.static final StringMarker attribute thejuneau-views.jsruntime looks for to auto-initialize a view table.static final StringMarker attribute on the nested-table wrapper<div>(value"1").static final StringAttribute carrying the nested-table contract version on the nested-table wrapper.static final StringAttribute on the nested VIEW_META sidecar<script>, carrying the nested view id.static final StringAttribute carrying the nested-table parent-scope query parameter name on the nested-table wrapper.static final StringAttribute carryingSelectionDef.rowIdField()— the row-data key the runtime stamps as each row's stable id.static final Stringstatic final StringMarker attribute stamped when aSelectionDefis declared.static final StringPrefix of the sidecar<script>element id:juneau-view:<viewId>.static final StringClass stamped on every emitted<table>— top-level and nested alike — and the anchor of the toolkit's cell-overflow contract. -
Method Summary
-
Field Details
-
MARKER_ATTR
Marker attribute thejuneau-views.jsruntime looks for to auto-initialize a view table.- See Also:
-
SIDECAR_ID_PREFIX
Prefix of the sidecar<script>element id:juneau-view:<viewId>.- See Also:
-
TABLE_CLASS
Class stamped on every emitted<table>— top-level and nested alike — and the anchor of the toolkit's cell-overflow contract.juneau-views.cssclips cell content through the named selector.juneau-view-table tdrather than a global unnamedtdrule, so the contract reaches only tables this toolkit produced and never app markup the toolkit does not own. SeeCELL_WRAP_CLASSfor the opt-out.- See Also:
-
CELL_WRAP_CLASS
Per-cell opt-out from the clip/ellipsis default:.juneau-view-table td.juneau-cell-wraprestores the pre-10.0 wrapping behavior.The named renderers whose output is a chip / bar / link rather than prose (
progress,pill,tag,linked) stamp this themselves through theirclassfacet; an author who wants a wrapping prose column stamps it through that column's own class.- See Also:
-
CSRF_ATTR
Attribute the CSRF token is stamped into on a shell ancestor (typically<main>) sojuneau-views.jscan attach it to mutating requests.On an allowed request the
LoopbackBoundaryFilterpublishes the process's CSRF token underLoopbackBoundaryFilter.TOKEN_ATTRIBUTE; the host copies it here. The runtime fails closed when this attribute is absent, empty, or whitespace: it visibly refuses to issue any row-action request rather than sending one the server would 403.- See Also:
-
SELECT_ATTR
Marker attribute stamped when aSelectionDefis declared. Pure DOM signaling — never part of theVIEW_METAwire contract; seeSelectionDef's class javadoc.- See Also:
-
ROW_ID_FIELD_ATTR
Attribute carryingSelectionDef.rowIdField()— the row-data key the runtime stamps as each row's stable id.- See Also:
-
SELECT_ALL_ATTR
- See Also:
-
BULK_ATTR
Marker attribute stamped when aBulkMutateDefis declared; pairs with theBULK_SIDECAR_ID_PREFIXsidecar carrying the actual bulk-action list.- See Also:
-
BULK_SIDECAR_ID_PREFIX
Prefix of the bulk-actions sidecar<script>element id:juneau-view-bulk:<viewId>.- See Also:
-
LAYOUT_ATTR
Full-real-estate layout hint. A first-class publicdata-juneau-*convention: consumer chrome (the consolechrome.cssfull-bleed:hasrules) can widen the enclosing card/main out of its default centeredmax-width.- See Also:
-
LAYOUT_WIDE
The onlyLAYOUT_ATTRvalue in v1: request full horizontal real estate for the wrapper's content.- See Also:
-
DETAIL_TH_CLASS
CSS class on the dedicated row-expand header cell so the expander glyph never shares the first data column.- See Also:
-
DETAIL_CONTROL_CLASS
CSS class on the dedicated row-expand body cell (and the DataTables columnclassName).- See Also:
-
DETAIL_TEMPLATE_ATTR
Marker attribute on the row-detail<template>sibling of the view table.- See Also:
-
DETAIL_CONTRACT_ATTR
Attribute carrying the row-detail contract version on the row-detail template.- See Also:
-
DETAIL_URL_ATTR
Attribute carrying the server-stamped expand GET path template on the row-detail template.- See Also:
-
DETAIL_SECTION_ATTR
Historical section-id marker; no longer emitted (row-detail bodies are one region).- See Also:
-
DETAIL_FIELD_ATTR
Marker on a client-painted field-grid value slot (fieldGridcatalogdatakey).- See Also:
-
DETAIL_HEADER_ATTR
Marker on the optional detail-panel header (title + header actions).- See Also:
-
DETAIL_TITLE_ATTR
Marker on the header title element filled from a{field}template.- See Also:
-
DETAIL_TITLE_TEMPLATE_ATTR
Attribute carrying the header title template (placeholders filled at expand time).- See Also:
-
DETAIL_TITLE_FIELDS_ATTR
Comma-separatedRegionDef.titleFieldsallowlist stamped on the row-detail<template>. Copied onto the cloned panel at expand time;paintDetailTitleSlotsubstitutes only these keys.- See Also:
-
DETAIL_ICON_ATTR
Attribute carrying the header icon registry name.- See Also:
-
DETAIL_FIELD_FORMAT_ATTR
Attribute carrying aFieldFormatwire token. Omitted forFieldFormat.TEXT(the default).- See Also:
-
DETAIL_FIELD_RENDER_ATTR
Attribute carrying a field-grid render id. Omitted when render is unset.- See Also:
-
DETAIL_FIELD_RENDER_META_ATTR
Attribute carrying JSON-encodedRender.meta. Omitted when meta is null or empty.- See Also:
-
DETAIL_FIELD_RENDER_HREF_ATTR
Attribute carrying a field-grid href template. Omitted when href is unset.- See Also:
-
DETAIL_ACTION_ATTR
Attribute carrying anActionRefid on a write button.- See Also:
-
DETAIL_SAFE_ATTR
Attribute carrying aSafeAction.wire()token.- See Also:
-
DETAIL_ACTION_RULES_ATTR
Attribute carrying anActionRef's row-state rules as a JSON array, in the author's declared order. Omitted entirely for an ungated action.Each entry is
{"field":..., "op":..., "value"?:..., "reason":...} — the same JSON-in-a-data-attribute shapeDETAIL_FIELD_RENDER_META_ATTRuses. Declaration order is the array order, because the first failing rule is the one whose reason an operator sees.- See Also:
-
DETAIL_ACTION_DESC_ATTR
Attribute on the hidden node a gated action's disabled reason is painted into, carrying that action's id. Emitted only alongsideDETAIL_ACTION_RULES_ATTR.The node exists because
aria-describedbyneeds something real to point at. It carries the native HTMLhiddenattribute rather than a utility class, so no stylesheet rule is needed to keep it out of view and none is added. It carries no elementidhere either: this whole subtree is cloned per expanded row, so the runtime mints the row-unique one.- See Also:
-
NESTED_ATTR
Marker attribute on the nested-table wrapper<div>(value"1").Nested-table seeding inside a row-detail panel is deferred; this marker remains so a later host can skip auto-init of a nested
data-juneau-viewtable until its pane is visible.- See Also:
-
NESTED_META_ATTR
Attribute on the nested VIEW_META sidecar<script>, carrying the nested view id.The nested sidecar carries no HTML
id(a<template>clone would collide); the runtime finds it as a sibling of the nested<table>by this attribute instead.- See Also:
-
NESTED_CONTRACT_ATTR
Attribute carrying the nested-table contract version on the nested-table wrapper.- See Also:
-
NESTED_SCOPE_PARAM_ATTR
Attribute carrying the nested-table parent-scope query parameter name on the nested-table wrapper.- See Also:
-