*
* @return the item band.
*/
private ItemBand createItemBand()
{
final ItemBand items = new ItemBand();
items.setName("Items");
items.getStyle().setStyleProperty(ElementStyleKeys.MIN_HEIGHT, new Float(10));
items.getStyle().setStyleProperty(TextStyleKeys.FONT, "Monospaced");
items.getStyle().setStyleProperty(TextStyleKeys.FONTSIZE, new Integer(10));
items.getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, Color.decode("#dfdfdf"));
items.addElement(HorizontalLineElementFactory.createHorizontalLine
(0, Color.decode("#DFDFDF"), new BasicStroke(0.1f)));
items.addElement(HorizontalLineElementFactory.createHorizontalLine
(10, Color.decode("#DFDFDF"), new BasicStroke(0.1f)));
TextFieldElementFactory factory = new TextFieldElementFactory();
factory.setName("Country Element");
factory.setAbsolutePosition(new Point2D.Float(0, 0));
factory.setMinimumSize(new FloatDimension(176, 10));
factory.setHorizontalAlignment(ElementAlignment.LEFT);
factory.setVerticalAlignment(ElementAlignment.MIDDLE);
factory.setNullString("<null>");
factory.setFieldname("Country");
items.addElement(factory.createElement());
factory = new TextFieldElementFactory();
factory.setName("Code Element");
factory.setAbsolutePosition(new Point2D.Float(180, 0));
factory.setMinimumSize(new FloatDimension(76, 10));
factory.setHorizontalAlignment(ElementAlignment.LEFT);
factory.setVerticalAlignment(ElementAlignment.MIDDLE);
factory.setNullString("<null>");
factory.setFieldname("ISO Code");
items.addElement(factory.createElement());
final NumberFieldElementFactory nfactory = new NumberFieldElementFactory();
nfactory.setName("Population Element");
nfactory.setAbsolutePosition(new Point2D.Float(260, 0));
nfactory.setMinimumSize(new FloatDimension(76, 10));
nfactory.setHorizontalAlignment(ElementAlignment.LEFT);
nfactory.setVerticalAlignment(ElementAlignment.MIDDLE);
nfactory.setNullString("<null>");
nfactory.setFieldname("Population");
nfactory.setFormatString("#,##0");
items.addElement(nfactory.createElement());
return items;
}