Uses of Class
org.apache.juneau.console.freemarker.PageSpec
Packages that use PageSpec
Package
Description
FreeMarker-only delivery of the admin-console chrome: the reserved-classpath
base.ftlh template, the
<@tag> macro, and ConsoleFreemarkerMixin
(registers a reserved-path ClassTemplateLoader on top of the host's own FreemarkerMixin
configuration).Petstore admin console: the
/console page tree.Builder twins of the petstore console pages: each page's
.ftlh file rebuilt with PageSpec, served
when the page is requested with ?builder.-
Uses of PageSpec in org.apache.juneau.console.freemarker
Methods in org.apache.juneau.console.freemarker that return PageSpecModifier and TypeMethodDescriptionAdds a passthrough attribute, applied to the view this spec builds.Adds a header badge.Sets one<body>attribute.PageSpec.bridge(BridgeDecl decl) Declares a server bridge; repeatable.Adds a custom-type card with no inline markup.Adds a custom-type card that also takes inline markup.static PageSpecPageSpec.create()Creates a new, empty spec.Sets the CSRF body attributes:data-juneau-csrfand, ifheaderNameis non-blank,data-juneau-csrf-header.Adds page CSS URLs, appending any not already present.PageSpec.dashboard(DashboardSpec dashboard) Adds the page's dashboard: a rail of filter sections beside a grid of card panels.PageSpec.data(DataSourceDef def) Declares a data source, published ondata:<id>; repeatable.Declares a derived data source, published ondata:<as>; repeatable.Seeds page-level facts, whichvisibleWhenrules test on the client.Adds a passthrough HTTP response header, applied to the view this spec builds.PageSpec.header(Consumer<PageCapture.HeaderSpec> c) Sets the header'ssubtitleand/oruserMenu.Adds anhtmlcard whose body ismarkup, with no title.Adds anhtmlcard whose body ismarkup, with a title.Adds anhtmlcard whose body ismarkup, lettingcardadjust the card (title, CSS class, and so on).Adds anhtmlcard whose body is fetched fromsrc, with a title, unsanitized.Adds anhtmlcard whose body is fetched fromsrc, with a title, optionally rebuilt through the views attribute-allowlist sanitizer.Adds page init-script URLs, appending any not already present.PageSpec.navUnder(String parentIdPath, PageCapture.NavAdder adder) Queues a child to add under an existing chrome nav node, resolved once the chrome's own nav tree exists.Pins the page's colour scheme.PageSpec.schemeToggle(boolean value) Lets the visitor override the page's colour scheme with a stored choice.Sets the<@page tab>-equivalent active-nav path.Adds adatatablescard fortable, with no title.Adds adatatablescard fortable, with a title.Adds adatatablescard fortable, lettingcardadjust the card.Sets the page template, overriding the mixin's configured chrome template.Selects a stock theme by name.Sets the page title.Adds toolkit names, appending any not already present.Declares a page-level custom topic; repeatable. -
Uses of PageSpec in org.apache.juneau.petstore.console
Methods in org.apache.juneau.petstore.console with parameters of type PageSpecModifier and TypeMethodDescriptionstatic ViewPetstoreConsolePage.twin(RestRequest req, PageSpec spec) Renders a builder-twin page, marked withPetstoreConsolePage.PAGE_HEADER. -
Uses of PageSpec in org.apache.juneau.petstore.console.pages
Methods in org.apache.juneau.petstore.console.pages that return PageSpecModifier and TypeMethodDescriptionstatic PageSpecAboutPageBuilders.about()About.static PageSpecOpsPageBuilders.audit()P7 Audit.static PageSpecDevPageBuilders.cards()Custom cards.static PageSpecChangesPageBuilders.changes()P10 Pending changes.static PageSpecDevPageBuilders.charts()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 PageSpecDevPageBuilders.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.static PageSpecOne Rendering flavors page.static PageSpecOpsPageBuilders.jobs(TerminalDef groomOutput, TerminalDef groomFile) P6 Jobs.static PageSpecOrdersPageBuilders.orders()P5 Orders.static PageSpecPetsPageBuilders.pet(Pet pet, String tab, String activeNav, Order order, List<String> roles, String apiCsrf) P4 one pet, on one tab.static PageSpecPetsPageBuilders.pets()P2 Pets.static PageSpecPetsPageBuilders.petsMixed()P2 Pets, half FTL:pets-mixed.ftlhlays out the page and places this spec's table with<@card ref="pets"/>.static PageSpecDevPageBuilders.secure()Secure.static PageSpecPetsPageBuilders.sold()P3 Sold.static PageSpecStorePageBuilders.store(StorePageBuilders.QuickStats qs) P1 Store.static PageSpecThemes.static PageSpecUsersPageBuilders.users()P11 Users.