if (!tableTag.isIncludedRow())
{
return super.doEndTag();
}
Cell cell = null;
if (this.property == null && this.value != null)
{
cell = new Cell(value);
}
else if (this.property == null && this.bodyContent != null)
{
cell = new Cell(this.bodyContent.getString());
}
Object rowStyle = this.attributeMap.get(TagConstants.ATTRIBUTE_STYLE);
Object rowClass = this.attributeMap.get(TagConstants.ATTRIBUTE_CLASS);
if (rowStyle != null || rowClass != null)
{
HtmlAttributeMap perRowValues = new HtmlAttributeMap();
if (rowStyle != null)
{
perRowValues.put(TagConstants.ATTRIBUTE_STYLE, rowStyle);
}
if (rowClass != null)
{
perRowValues.put(TagConstants.ATTRIBUTE_CLASS, rowClass);
}
if (cell == null)
{
cell = new Cell(null);
}
cell.setPerRowAttributes(perRowValues);
}
tableTag.addCell(cell != null ? cell : Cell.EMPTY_CELL);
// cleanup non-attribute variables