AccountBarBuilder
Utility links and a clearly simulated account display.
Java composition
AccountBarBuilder.create().addLeftLink("Documentation", "/docs").addRightItem(new Paragraph("Simulated visitor, not signed in")).build();ShellBuilder
Open a complete local document, isolated from this site's shell.
Java composition
Component content = new Div().withChild(Header.H1("Local shell preview"))
.withChild(new Paragraph("A complete document."))
.withChild(Link.create("/demos/builders/shell", "Back to the builder example"));
ShellBuilder shell = ShellBuilder.create().withPageTitle("Local shell preview")
.withSideNav(SideNavBuilder.create().addSection("Preview navigation")
.addLink("Chat", "/chat").addLink("Documentation", "/docs").build(), true);
shell.withContent(content).build();ShellTemplate
Compile a shell and render its typed content slot in a separate local document.
Java composition
Component content = new Div().withChild(Header.H1("Template preview"))
.withChild(new Paragraph("Content supplied at render time."))
.withChild(Link.create("/demos/builders/shell-template", "Back to the builder example"));
ShellBuilder shell = ShellBuilder.create().withPageTitle("Template preview")
.withSideNav(SideNavBuilder.create().addSection("Preview navigation")
.addLink("Chat", "/chat").addLink("Documentation", "/docs").build(), true);
shell.buildTemplate().renderWithContent(content);