Package org.apache.juneau.console.widgets
package org.apache.juneau.console.widgets
Reusable widget primitives for the Juneau REST server toolkit.
This optional module holds the shared Widget marker and the
bean-only definitions for the reusable calendar widget (CalendarDef,
EventCategory,
CalendarEvent). Table-specific types (row actions, bulk mutate)
stay in juneau-console-views; this module has
no dependency on views, so a widget bean can never import a views-module type. A
CalendarDef carries no HTML-emitter code — pages mount an
empty data-juneau-calendar marker and juneau-calendar.js hydrates it.
See Also:
- Since:
- 10.0.0
-
ClassDescriptionOne item in an action bar: either an
ActionRef(opaque id naming a write action on the enclosing view) or aSafeAction(client-only, no endpoint).An opaque id naming a write action on the enclosing view.The visual weight anActionRefbutton is painted with.One row-state rule gating anActionRef.An overlay badge on a header action (a bell count, for example) or aBarBadge.A labelled count widget in aBarSlot— the "N change pending"-style badge to the right of the subtab ribbon.An additive trailing region beside the subtab ribbon: a small row ofBarWidgets (concept #9).A static contextual label widget in aBarSlot.How a header/menu action behaves when the user activates it.A reusable month-calendar definition: month/year navigation, event categories, and a display-only legend (parent concept #10).The view families; v1 shipsMONTHonly so an author cannot set a value that only fails atvalidate().The first column of the week grid.A single calendar event — also the element type of the per-month event GET envelope'sevents.A declared calendar event category — a legend entry and the color family its events paint with.The fixed category color families, each mapped to an existing--jc-tag-*token family.The declarative source of a row-action modal's input form (the form half of apresent=dialogaction).A single typed form input painted client-side withcreateElement(neverinnerHTML).A singleselectoption: a submit value and its visible label.One labelled group of inputs inside a sectioned form: the multi-page dialog shape.A single row in an attached header or avatar menu.The declarative modal (dialog) apresent=dialogrow action opens — the payload the modal-open confirmation fetch returns.One entry in a dialog'sModalDef.childActionscatalog — a stacked step atype="action"input inside this dialog's form may open.A single typed confirmation field: a label and a value, painted client-side withtextContent(neverinnerHTML).One page of aModalDef.stepswizard: an id, an optional title and confirm-button label, and the typed display fields painted for that page.The comparison operator of a declarative single-field rule.A client-onlyActionBarItemwith no endpoint.AWidget-marked declaration of named server-side scalar values.An internal, per-render resolver for a singleServerValuesdeclaration.An immutable named server-side scalar value declaration held by aServerValuesbean.The one closed status-tone palette shared by every surface that paints a semantic status colour:info/success/warning/error/neutral.Marker for a reusable widget primitive.The widget toolkit's serving-path mixin: the mount, asset-URL API and serving endpoints for the widget-owned browser runtime (juneau-calendar.js,juneau-calendar.css), plus the contract-version handshake constants those runtimes bake in.The serving-pathWidget.validate()gate: fail-closed structural validation for any REST response content that is aWidget, giving the JSON serving path the same gate thejuneau-console-viewsHTML emitters already give everyWidgetthey consume.