footer = body.one("#ft");
drawTestNav(Y);
// //java source button
Button showJavaButton = Y.newButton(Button.config().label(constants.showJava()).render(extraContent).on("click", new EventCallback() {
@Override
public void call(EventFacade e) {
doShowCurrentTestSources2();
}
}));
showJavaButton.srcNode().setStyles(Style.create().fontSize("1.2em").fontWeight("bolder").textDecoration("underline").margin("10px 0px"));
// test description button
Button descrButton = Y.newButton(Button.config().label("Test description")).render(extraContent).on("click", new EventCallback() {
@Override
public void call(EventFacade e) {
showCurrentTestDescription(Y);
}
}).cast();
// descrButton.contentBox().setStyle("width", "100%");
// this gallery sources button
Button showSurceButton = Y.newButton(Button.config().label(constants.thisExampleGallerySources())).render(extraContent).on("click", new EventCallback() {
@Override
public void call(EventFacade e) {
Map<String, ResourcePrototype> r = new HashMap<String, ResourcePrototype>();
r.put(constants.thisExampleGallerySources(), TestResources.instance.Gallery());
doShowSources2(r);
// showJavaSource2(Y, TestResources.instance.Gallery(),
// constants.thisExampleGallerySources(), 0);
}
}).cast();
// showSurceButton.contentBox().setStyle("width", "100%");
Button aboutButton = Y.newButton(Button.config().label("About")).render(extraContent).on("click", new EventCallback() {
@Override
public void call(EventFacade e) {
showAboutThisApplication(Y);
}
}).cast();