@Override public void paintContent(PaintTarget target) throws PaintException { target.addAttribute("type", "twincol"); // Adds the number of columns if (columns != 0) { target.addAttribute("cols", columns); } // Adds the number of rows if (rows != 0) { target.addAttribute("rows", rows); } // Right and left column captions and/or icons (if set) String lc = getLeftColumnCaption(); String rc = getRightColumnCaption(); if (lc != null) { target.addAttribute(TwinColSelectConstants.ATTRIBUTE_LEFT_CAPTION, lc); } if (rc != null) { target.addAttribute(TwinColSelectConstants.ATTRIBUTE_RIGHT_CAPTION, rc); } super.paintContent(target); }