1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.gwtwidgets.client.temp;
18
19 import com.google.gwt.user.client.DOM;
20 import com.google.gwt.user.client.Element;
21 import com.google.gwt.user.client.ui.Grid;
22
23 /***
24 * An extension of Grid that does not put an
25 * inside a cell when it is cleared. This is a temporary
26 * fix until this same fix is made in the GWT Grid
27 * component, or may become a permanant addition to
28 * the GWT-WL if this change is not made in the Grid.
29 *
30 * @author rhanson
31 */
32 public class TGrid extends Grid
33 {
34
35 public TGrid (int width, int height)
36 {
37 super(width, height);
38 }
39
40 /***
41 * Completely clear cell, does not leave an
42 */
43 public boolean clearCell (int row, int column)
44 {
45 boolean result = super.clearCell(row, column);
46 Element td = getCellFormatter().getElement(row, column);
47 DOM.setInnerHTML(td, "");
48 return result;
49 }
50
51 }