code: protected void formatCell (HTMLTable.CellFormatter formatter, int row, int col, int limit)
      {
          formatter.setHorizontalAlignment(row, col, _cellHorizAlign);
          formatter.setVerticalAlignment(row, col, _cellVertAlign);
          formatter.setStyleName(row, col, "Cell");
          if (row == (limit-1)/_cols) {
              formatter.addStyleName(row, col, "BottomCell");
          } else if (row == 0) {
              formatter.addStyleName(row, col, "TopCell");
          } else {
              formatter.addStyleName(row, col, "MiddleCell");
          }
      }
docs: Configures the formatting for a particular cell based on its location in the grid.