01: package net.mygwt.ui.client.widget.treetable;
02:
03: import net.mygwt.ui.client.widget.table.ITable;
04: import net.mygwt.ui.client.widget.table.TableHeader;
05:
06: public class TreeTableHeader extends TableHeader {
07:
08: public TreeTableHeader(TreeTable treeTable) {
09: super (treeTable);
10: }
11:
12: protected void init(ITable table) {
13: super .init(table);
14: }
15:
16: protected void updateSplitBars() {
17: super .updateSplitBars();
18: }
19:
20: protected void resizeColumns(boolean fireEvent, boolean resizeBody) {
21: super .resizeColumns(fireEvent, resizeBody);
22: }
23:
24: protected void doTableComponentResize() {
25: if (table instanceof TreeTable) {
26: ((TreeTable) table).getView().resize();
27: } else {
28: super .doTableComponentResize();
29: }
30: }
31:
32: protected void doTableComponentResizeCells(int columnIndex) {
33: if (table instanceof TreeTable) {
34: ((TreeTable) table).getView().resizeCells(columnIndex);
35: } else {
36: super .doTableComponentResizeCells(columnIndex);
37: }
38: }
39:
40: protected void doTableComponentShowColumn(int index, boolean show) {
41: if (table instanceof TreeTable) {
42: ((TreeTable) table).getView().showColumn(index, show);
43: } else {
44: super.doTableComponentShowColumn(index, show);
45: }
46: }
47: }
|