Hey there,
to be able to individually set stylenames for cells in a CellTable I
would like to add the following method to the CellTable class:
public void setCellStyles(CellStyles<T> cellStyles) {
this.cellStyles = cellStyles;
}
The interface CellStyles only defines a single method:
public interface CellStyles<T> {
String getCellStyleNames(T row, int rowIndex, int colIndex);
}
In the renderRowValues method of the CellTable I added the following
lines
if (cellStyles != null) {
String extraCellStyles = cellStyles.getCellStyleNames(value,
i, curColumn);
if (extraCellStyles != null) {
tdClasses += " ";
tdClasses += extraCellStyles;
}
}
The behaviour is equal to the behaviour of the one for RowStyles.
What is the process to get this added in the common GWT.
Thanks in advance,
Sascha
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors