*/
protected TableCellAttributes createTableDataCellAttributes(
VolantisProtocol protocol, MCSAttributes sourceAttributes,
boolean generateDefaultId) {
// Create new instance of TableCellAttributes
TableCellAttributes tableAttributes = new TableCellAttributes();
// If source attributes are specified, copy all attribute values.
if (sourceAttributes != null) {
tableAttributes.copy(sourceAttributes);
}
// If styles are not specified, create new inherited styles.
Styles styles = tableAttributes.getStyles();
if (styles == null) {
styles = StylingFactory.getDefaultInstance().createInheritedStyles(
protocol.getMarinerPageContext().getStylingEngine()
.getStyles(), null);
tableAttributes.setStyles(styles);
}
if (generateDefaultId && tableAttributes.getId() == null) {
tableAttributes.setId(protocol.getMarinerPageContext()
.generateUniqueFCID());
}
return tableAttributes;
}