setElement(Elements.createDivElement());
}
private Panel createLayout(String headerText, String buttonText, String footerText) {
Element root = Elements.createDivElement(css.root());
if (StringUtils.isNullOrEmpty(headerText)) {
root.appendChild(Elements.createDivElement(css.headerLogo()));
} else {
DomUtils.appendDivWithTextContent(root, css.headerText(), headerText);
}
AnchorElement button = Elements.createAnchorElement();
button.setClassName(css.button());
button.setTextContent(buttonText);
root.appendChild(button);
DivElement footer = DomUtils.appendDivWithTextContent(root, css.footerText(), footerText);
return new Panel(root, button, footer);
}