Class JsonViewerRenderer

java.lang.Object
ai.mindconnect.ui.javafx.json.JsonViewerRenderer
All Implemented Interfaces:
FxNodeRenderer<UiJsonViewer>

public class JsonViewerRenderer extends Object implements FxNodeRenderer<UiJsonViewer>
Paints json-viewer as pretty-printed text.

The web node is backed by a third-party component with IDE-style folding. There is no desktop equivalent, and building one would be a tree widget's worth of work for a node whose job is to let someone read a payload. So this does the plain thing: indent it and show it.

Read-only rather than a label, because the reason a payload is on screen is usually that someone wants a value out of it — a TextArea can be selected and copied, and scrolls on its own when the payload is large, which is the case the node exists for.

expandLevel and theme are the web component's own knobs and have no counterpart here; they are ignored rather than approximated.