Examples of BreadcrumbList


Examples of lib.BreadcrumbList

        flash("success", "Successfully imported " + successes + " of " + elir.extractors.size() + " extractors.");
        return redirect(controllers.routes.ExtractorsController.manage(nodeId, inputId));
    }

    private static BreadcrumbList standardBreadcrumbs(Node node, Input input) {
        BreadcrumbList bc = new BreadcrumbList();
        bc.addCrumb("System", controllers.routes.SystemController.index(0));
        bc.addCrumb("Nodes", controllers.routes.NodesController.nodes());
        bc.addCrumb(node.getShortNodeId(), controllers.routes.NodesController.node(node.getNodeId()));
        bc.addCrumb("Input: " + input.getTitle(), null);
        bc.addCrumb("Extractors", controllers.routes.ExtractorsController.manage(node.getNodeId(), input.getId()));

        return bc;
    }
View Full Code Here

Examples of se.unbound.tapestry.breadcrumbs.BreadCrumbList

    }

    @Test
    public void renderCrumbList() {
        final PageRenderLinkSource linkSource = this.getService(PageRenderLinkSource.class);
        final BreadCrumbList breadCrumbList = new BreadCrumbList(true, 5);
        breadCrumbList.add(new BreadCrumbInfo("msg1", linkSource.createPageRenderLink("page1"), "page1"));
        breadCrumbList.add(new BreadCrumbInfo("msg2", linkSource.createPageRenderLink("page2"), "page2"));
        this.getService(ApplicationStateManager.class).set(BreadCrumbList.class, breadCrumbList);

        final Document page = this.renderPage("page2");
        final String pageContent = page.toString();
        assertTrue("page contains Message1", pageContent.contains("Message1"));
View Full Code Here

Examples of se.unbound.tapestry.breadcrumbs.BreadCrumbList

    }
   
    @Test
    public void renderCrumbListTitle() {
        final PageRenderLinkSource linkSource = this.getService(PageRenderLinkSource.class);
        final BreadCrumbList breadCrumbList = new BreadCrumbList(true, 5);
        BreadCrumbInfo info = new BreadCrumbInfo("msg1", linkSource.createPageRenderLink("page1"), "page1");
        info.setTitle("PageTitle");
        breadCrumbList.add(info);
        breadCrumbList.add(new BreadCrumbInfo("msg2", linkSource.createPageRenderLink("page2"), "page2"));
        this.getService(ApplicationStateManager.class).set(BreadCrumbList.class, breadCrumbList);

        final Document page = this.renderPage("page2");
        final String pageContent = page.toString();
        assertTrue("page contains PageTitle", pageContent.contains("PageTitle"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.