Class JobLogRegion
RegionDef.
The console's job-log card, hosted in a row's detail: a form whose submit runs a row-bound job through
JuneauViews.jobs, streams its log, and optionally writes its result into a field. toRegion()
produces a RegionDef.TYPE_ROW_DETAIL region with populate("job-log"), opts that populator in, and
carries the whole declaration as RegionDef.config. The populator ships in the console's joblog
pack.
The submit always uses the action envelope {action, targetId, idempotencyKey, fields}: targetId is
the row id, and the key comes from submit.keyUrl, an endpoint that answers
JobKeyLedger.response(IdempotencyKey). The shape rules live in JobLogChecks, shared with the page
card.
Example:
RegionDef
- Since:
- 10.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe optional field grid painted above the form, whose slotsoutput.target.fieldcan address.static final classOnesubmit.fieldsentry.static final classWhere a terminal result is written.static final classThesubmitdeclaration. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionclearOnSubmit(boolean value) static JobLogRegionCreates a declaration.detail(JobLogRegion.Detail value) static JobLogRegionCreates a declaration from a parsed map (a datatables card'sdetail.region.config).height(int px) output(JobLogRegion.Output value) submit(JobLogRegion.Submit value) toMap()Returns the config in canonical key order, so the builder and the console-card path emit the same sidecar.toRegion()Validates and compiles this declaration.validate()Validates this declaration (fail-closed).
-
Field Details
-
POPULATOR
The populator name.- See Also:
-
MIN_HEIGHT
The smallest acceptedheight, in pixels; matches the page card's floor.- See Also:
-
KEYS
The top-level config keys, in emission order. -
id
Region id.
-
-
Method Details
-
create
Creates a declaration.- Parameters:
id- The region id.- Returns:
- A new declaration.
-
fromMap
Creates a declaration from a parsed map (a datatables card'sdetail.region.config).- Parameters:
id- The region id.config- Theconfigobject; keys must be a subset ofKEYS.- Returns:
- A new declaration (not yet validated).
- Throws:
IllegalArgumentException- Ifconfigis not an object or has an unknown key.
-
submit
- Parameters:
value- The submit declaration. @return This object.
-
detail
- Parameters:
value- The optional field grid painted above the form. @return This object.
-
height
- Parameters:
px- The log pane height, in pixels. @return This object.
-
clearOnSubmit
- Parameters:
value- Whether a submit clears the log first. @return This object.
-
output
- Parameters:
value- Where a terminal result is written. @return This object.
-
validate
Validates this declaration (fail-closed).- Returns:
- This object.
- Throws:
IllegalArgumentException- If a rule is broken.
-
toMap
Returns the config in canonical key order, so the builder and the console-card path emit the same sidecar.- Returns:
- A new ordered map.
-
toRegion
Validates and compiles this declaration.- Returns:
- A validated row-detail region.
-