Class TerminalViewDef

java.lang.Object
org.apache.juneau.console.views.TerminalViewDef

public class TerminalViewDef extends Object
The author-facing declaration of a terminal-view region, compiled to a RegionDef.

toRegion() produces a region with populate("terminal-view"), opts that populator in with allowPopulators("terminal-view"), and carries every setting as a flat params scalar. It never sets dataUrl or refreshMs on the region: the terminal view owns its own polling loop.

Example:

RegionDef region = TerminalViewDef.create("run") .eventsUrl("/runs/42/events") .title("Run 42") .toRegion();