Search in sources :

Example 1 with WSkipLinks

use of com.github.bordertech.wcomponents.WSkipLinks in project wcomponents by BorderTech.

the class WSkipLinksRenderer_Test method testDoPaint.

@Test
public void testDoPaint() throws IOException, SAXException, XpathException {
    WSkipLinks skipLinks = new WSkipLinks();
    assertSchemaMatch(skipLinks);
    assertXpathExists("//ui:skiplinks", skipLinks);
}
Also used : WSkipLinks(com.github.bordertech.wcomponents.WSkipLinks) Test(org.junit.Test)

Example 2 with WSkipLinks

use of com.github.bordertech.wcomponents.WSkipLinks in project wcomponents by BorderTech.

the class TreePicker method buildUI.

/**
 * Add all the bits in the right order.
 */
private void buildUI() {
    add(new WSkipLinks());
    // the application header
    add(headerPanel);
    headerPanel.add(new UtilityBar());
    headerPanel.add(new WHeading(HeadingLevel.H1, "WComponents"));
    // mainPanel holds the menu and the actual example.
    add(mainPanel);
    mainPanel.add(menuPanel);
    mainPanel.add(exampleSection);
    // An application footer?
    WPanel footer = new WPanel(WPanel.Type.FOOTER);
    footer.add(lastLoaded);
    add(footer);
    add(new WAjaxControl(menuPanel.getTree(), new AjaxTarget[] { menuPanel.getMenu(), exampleSection }));
}
Also used : WAjaxControl(com.github.bordertech.wcomponents.WAjaxControl) WSkipLinks(com.github.bordertech.wcomponents.WSkipLinks) WPanel(com.github.bordertech.wcomponents.WPanel) WHeading(com.github.bordertech.wcomponents.WHeading) AjaxTarget(com.github.bordertech.wcomponents.AjaxTarget)

Example 3 with WSkipLinks

use of com.github.bordertech.wcomponents.WSkipLinks in project wcomponents by BorderTech.

the class WSkipLinksRenderer_Test method testRendererCorrectlyConfigured.

@Test
public void testRendererCorrectlyConfigured() {
    WSkipLinks skipLinks = new WSkipLinks();
    Assert.assertTrue("Incorrect renderer supplied", getWebXmlRenderer(skipLinks) instanceof WSkipLinksRenderer);
}
Also used : WSkipLinks(com.github.bordertech.wcomponents.WSkipLinks) Test(org.junit.Test)

Aggregations

WSkipLinks (com.github.bordertech.wcomponents.WSkipLinks)3 Test (org.junit.Test)2 AjaxTarget (com.github.bordertech.wcomponents.AjaxTarget)1 WAjaxControl (com.github.bordertech.wcomponents.WAjaxControl)1 WHeading (com.github.bordertech.wcomponents.WHeading)1 WPanel (com.github.bordertech.wcomponents.WPanel)1