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);
}
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 }));
}
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);
}
Aggregations