01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: * MyGWT - derived implementation
11: *******************************************************************************/package net.mygwt.ui.client.viewer;
12:
13: import net.mygwt.ui.client.widget.table.TableColumn;
14:
15: /**
16: * <code>ViewerColumn</code> implementation for TreeTableViewer to enable
17: * column-specific label providers.
18: */
19: public class TreeTableViewerColumn extends ViewerColumn {
20: private TableColumn column;
21:
22: /**
23: * Creates a new viewer column for the given <code>TreeTableViewer</code> on the
24: * given <code>TreeTableColumn</code>.
25: *
26: * @param viewer the tree table viewer to which this column belongs
27: * @param column the underlying table column
28: */
29: public TreeTableViewerColumn(TreeTableViewer viewer,
30: TableColumn column) {
31: super (viewer);
32:
33: this .column = column;
34: this .column.setData(ViewerColumn.COLUMN_VIEWER_KEY, this );
35: }
36:
37: /**
38: * Returns the table column.
39: *
40: * @return the table column
41: */
42: public TableColumn getColumn() {
43: return column;
44: }
45: }
|