01: /*
02: * MyGWT Widget Library
03: * Copyright(c) 2007, MyGWT.
04: * licensing@mygwt.net
05: *
06: * http://mygwt.net/license
07: */
08: package net.mygwt.ui.client.widget.treetable;
09:
10: import net.mygwt.ui.client.widget.table.TableColumnModel;
11:
12: /**
13: * ColumnModel used by the <code>TreeTable</code>.
14: *
15: * <dl>
16: * <dt>Events:</dt>
17: *
18: * <dd><b>Resize</b> : (this,widget,index)<br>
19: * <div>Fires after a column is resized.</div>
20: * <ul>
21: * <li>source : this</li>
22: * <li>widget : table</li>
23: * <li>index : column index</li>
24: * </ul>
25: * </dd>
26: */
27: public class TreeTableColumnModel extends TableColumnModel {
28:
29: /**
30: * Constructs a new instance.
31: */
32: public TreeTableColumnModel(TreeTableColumn[] columns) {
33: super (columns);
34: }
35:
36: /*
37: * (non-Javadoc)
38: *
39: * @see net.mygwt.ui.client.widget.table.TableColumnModel#getVariableColumnCount()
40: */
41: protected int getVariableColumnCount() {
42: return super .getVariableColumnCount();
43: }
44:
45: /*
46: * (non-Javadoc)
47: *
48: * @see net.mygwt.ui.client.widget.table.TableColumnModel#getVariableWidth()
49: */
50: protected int getVariableWidth() {
51: return super .getVariableWidth();
52: }
53:
54: /*
55: * (non-Javadoc)
56: *
57: * @see net.mygwt.ui.client.widget.table.TableColumnModel#getWidthInPixels(int)
58: */
59: protected int getWidthInPixels(int index) {
60: return super .getWidthInPixels(index);
61: }
62:
63: /*
64: * (non-Javadoc)
65: *
66: * @see net.mygwt.ui.client.widget.table.TableColumnModel#setWidthAsPercent(int,
67: * float)
68: */
69: protected void setWidthAsPercent(int index, float width) {
70: super.setWidthAsPercent(index, width);
71: }
72: }
|