Class DevPageBuilders
java.lang.Object
org.apache.juneau.petstore.console.pages.DevPageBuilders
Builder twins of the Developer pages: Custom cards (
cards.ftlh), Rendering flavors (flavors.ftlh,
flavors-react.ftlh), Secure (secure.ftlh), Themes (themes.ftlh), Charts (builder only),
Data sources (builder only) and Dashboard (builder only).
Example:
-
Method Summary
Modifier and TypeMethodDescriptionstatic PageSpeccards()Custom cards.static PageSpeccharts()Charts (builder only): a line chart with markers, a threshold and a click topic, and a table whose ribbon highlights a point.static PageSpecDashboard (builder only): a rail of every section kind over a 2-column grid of charts, bound to one CSV source.static PageSpecdata()Data sources (builder only): an hourly CSV source chunked by UTC day and cached in IndexedDB, over a range the page script publishes, drawn by a line chart.static PageSpecOne Rendering flavors page.static PageSpecsecure()Secure.static PageSpecThemes.
-
Method Details
-
cards
Custom cards.The gauge card's body is the same
{species, low, high}the FTL page authors:PageSpecruns it through the registeredInventoryGaugeCardType, so both pages carry the same validated fragment.- Returns:
- The page spec.
-
flavor
One Rendering flavors page.- Parameters:
flavor- The flavor.- Returns:
- The page spec.
-
secure
Secure.- Returns:
- The page spec.
-
themes
Themes.The theme itself is drawn by the chrome (
base.ftlh), so the spec carries the samepetstoreTheme/petstoreCustomThemeattributes the FTL page does.- Parameters:
theme- The stock theme to draw in (the custom theme's seed whencustom).custom- Whether the custom tokens are applied.choices- The theme names to offer.- Returns:
- The page spec.
-
charts
Charts (builder only): a line chart with markers, a threshold and a click topic, and a table whose ribbon highlights a point.- Returns:
- The page spec.
-
data
Data sources (builder only): an hourly CSV source chunked by UTC day and cached in IndexedDB, over a range the page script publishes, drawn by a line chart.- Returns:
- The page spec.
-
dashboard
Dashboard (builder only): a rail of every section kind over a 2-column grid of charts, bound to one CSV source.- Parameters:
variant- The source variant:ok,slow,truncated,errororright(theoksource with the rail on the right).version- The persist version; bumping it discards saved state.- Returns:
- The page spec.
-