*
* @return The page footer.
*/
private PageFooter createPageFooter()
{
final PageFooter pageFooter = new PageFooter();
pageFooter.setName("Page-Footer");
pageFooter.getStyle().setStyleProperty(ElementStyleKeys.MIN_HEIGHT, new Float(30));
pageFooter.getStyle().setStyleProperty(TextStyleKeys.FONT, "Dialog");
pageFooter.getStyle().setStyleProperty(TextStyleKeys.FONTSIZE, new Integer(10));
pageFooter.getStyle().setStyleProperty(ElementStyleKeys.BORDER_TOP_WIDTH, new Float(1));
pageFooter.getStyle().setStyleProperty(ElementStyleKeys.BORDER_LEFT_WIDTH, new Float(1));
pageFooter.getStyle().setStyleProperty(ElementStyleKeys.BORDER_BOTTOM_WIDTH, new Float(1));
pageFooter.getStyle().setStyleProperty(ElementStyleKeys.BORDER_RIGHT_WIDTH, new Float(1));
pageFooter.getStyle().setStyleProperty(ElementStyleKeys.BORDER_TOP_STYLE, BorderStyle.SOLID);
pageFooter.getStyle().setStyleProperty(ElementStyleKeys.BORDER_LEFT_STYLE, BorderStyle.SOLID);
pageFooter.getStyle().setStyleProperty(ElementStyleKeys.BORDER_BOTTOM_STYLE, BorderStyle.SOLID);
pageFooter.getStyle().setStyleProperty(ElementStyleKeys.BORDER_RIGHT_STYLE, BorderStyle.SOLID);
final LabelElementFactory factory = new LabelElementFactory();
factory.setName("Page-Footer-Label");
factory.setAbsolutePosition(new Point2D.Float(0, 0));
factory.setMinimumSize(new FloatDimension(-100, 0));
factory.setHorizontalAlignment(ElementAlignment.LEFT);
factory.setVerticalAlignment(ElementAlignment.TOP);
factory.setText("Some Text for the page footer");
factory.setDynamicHeight(Boolean.TRUE);
pageFooter.addElement(factory.createElement());
return pageFooter;
}