}
protected LayoutController processContent(final ReportTarget target)
throws DataSourceException, ReportProcessingException, ReportDataFactoryException
{
final AutoTableCellContent content = (AutoTableCellContent) getElement();
final FlowController flowController = getFlowController();
final ReportDataRow reportDataRow =
flowController.getMasterRow().getReportDataRow();
final AutoTableLayoutController table = findTableParent();
if (table == null)
{
throw new ReportProcessingException("Invalid state: have no auto-table as context.");
}
final int currentColumn = table.getCurrentColumn();
if ("name".equals(content.getItem()))
{
final String columnName = reportDataRow.getColumnName(currentColumn);
target.processText(columnName);
}
else if ("value".equals(content.getItem()))
{
final DataFlags flags = reportDataRow.getFlags(currentColumn);
target.processContent(flags);
}
else