functions instead of "new" for Row and TableModel
Brought to you by:
fgiust
It will require about 5 minutes to make a change but
IMHO add a better usability if "new Row" and "new
TableModel" will be replaced with calls of corresonding
public functions "getNewRow" and "getNewTableModel".
This way these functions could be overridden in the
classes inherited from Row and TableModel:
public Row getNewRow(Object iteratedObject, int
rowNumber)
{
return (new Row(iteratedObject, this.rowNumber));
}
public TableModel getNewTableModel(TableProperties
tableProperties, String charEncoding, PageContext
pageContext)
{
return (new TableModel(this.properties,
pageContext.getResponse().getCharacterEncoding(),
pageContext));
}