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.TableColumn;
11:
12: /**
13: * A column in a <code>TreeTable</code>. Column sizes can be specified as
14: * either pixels or percentanges. Width values less than or equal to 1 are
15: * treated as percentages.
16: *
17: * <p>
18: * Note: Public members should not be modified after the column is added to a
19: * column model.
20: * </p>
21: */
22: public class TreeTableColumn extends TableColumn {
23:
24: /**
25: * Creates a new column instance.
26: *
27: * @param id the column id
28: * @param width the column width, widths that are 1 or less are treated as
29: * percentages.
30: */
31: public TreeTableColumn(String id, float width) {
32: super (id, width);
33: this .setSortable(false);
34: }
35:
36: /**
37: * Creates a new column instance.
38: *
39: * @param id the column id
40: * @param text the column text
41: * @param width the width
42: */
43: public TreeTableColumn(String id, String text, float width) {
44: super (id, text, width);
45: this .setSortable(false);
46: }
47:
48: /**
49: * Creates a new column instance.
50: *
51: * @param id the column id
52: * @param text the column text
53: */
54: public TreeTableColumn(String id, String text) {
55: super (id, text);
56: this .setSortable(false);
57: }
58:
59: protected void setIndex(int index) {
60: super .setIndex(index);
61: }
62:
63: protected int getIndex() {
64: return super.getIndex();
65: }
66:
67: }
|