Mercurial > projects > dwt-linux
comparison dwt/widgets/Table.d @ 259:c0d810de7093
Update SWT 3.4M7 to 3.4
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 29 Jun 2008 14:33:38 +0200 |
parents | 5a30aa9820f3 |
children |
comparison
equal
deleted
inserted
replaced
257:cc1d3de0e80b | 259:c0d810de7093 |
---|---|
1 /******************************************************************************* | 1 /******************************************************************************* |
2 * Copyright (c) 2000, 2007 IBM Corporation and others. | 2 * Copyright (c) 2000, 2008 IBM Corporation and others. |
3 * All rights reserved. This program and the accompanying materials | 3 * All rights reserved. This program and the accompanying materials |
4 * are made available under the terms of the Eclipse Public License v1.0 | 4 * are made available under the terms of the Eclipse Public License v1.0 |
5 * which accompanies this distribution, and is available at | 5 * which accompanies this distribution, and is available at |
6 * http://www.eclipse.org/legal/epl-v10.html | 6 * http://www.eclipse.org/legal/epl-v10.html |
7 * | 7 * |
69 * } | 69 * } |
70 * }); | 70 * }); |
71 * </pre></code> | 71 * </pre></code> |
72 * </p><p> | 72 * </p><p> |
73 * Note that although this class is a subclass of <code>Composite</code>, | 73 * Note that although this class is a subclass of <code>Composite</code>, |
74 * it does not make sense to add <code>Control</code> children to it, | 74 * it does not normally make sense to add <code>Control</code> children to |
75 * or set a layout on it. | 75 * it, or set a layout on it, unless implementing something like a cell |
76 * editor. | |
76 * </p><p> | 77 * </p><p> |
77 * <dl> | 78 * <dl> |
78 * <dt><b>Styles:</b></dt> | 79 * <dt><b>Styles:</b></dt> |
79 * <dd>SINGLE, MULTI, CHECK, FULL_SELECTION, HIDE_SELECTION, VIRTUAL</dd> | 80 * <dd>SINGLE, MULTI, CHECK, FULL_SELECTION, HIDE_SELECTION, VIRTUAL, NO_SCROLL</dd> |
80 * <dt><b>Events:</b></dt> | 81 * <dt><b>Events:</b></dt> |
81 * <dd>Selection, DefaultSelection, SetData, MeasureItem, EraseItem, PaintItem</dd> | 82 * <dd>Selection, DefaultSelection, SetData, MeasureItem, EraseItem, PaintItem</dd> |
82 * </dl> | 83 * </dl> |
83 * </p><p> | 84 * </p><p> |
84 * Note: Only one of the styles SINGLE, and MULTI may be specified. | 85 * Note: Only one of the styles SINGLE, and MULTI may be specified. |
85 * </p><p> | 86 * </p><p> |
86 * IMPORTANT: This class is <em>not</em> intended to be subclassed. | 87 * IMPORTANT: This class is <em>not</em> intended to be subclassed. |
87 * </p> | 88 * </p> |
89 * | |
90 * @see <a href="http://www.eclipse.org/swt/snippets/#table">Table, TableItem, TableColumn snippets</a> | |
91 * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: ControlExample</a> | |
92 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> | |
88 */ | 93 */ |
89 public class Table : Composite { | 94 public class Table : Composite { |
90 | 95 |
91 alias Composite.computeSize computeSize; | 96 alias Composite.computeSize computeSize; |
92 alias Composite.createHandle createHandle; | 97 alias Composite.createHandle createHandle; |
151 * @see DWT#MULTI | 156 * @see DWT#MULTI |
152 * @see DWT#CHECK | 157 * @see DWT#CHECK |
153 * @see DWT#FULL_SELECTION | 158 * @see DWT#FULL_SELECTION |
154 * @see DWT#HIDE_SELECTION | 159 * @see DWT#HIDE_SELECTION |
155 * @see DWT#VIRTUAL | 160 * @see DWT#VIRTUAL |
161 * @see DWT#NO_SCROLL | |
156 * @see Widget#checkSubclass | 162 * @see Widget#checkSubclass |
157 * @see Widget#getStyle | 163 * @see Widget#getStyle |
158 */ | 164 */ |
159 public this (Composite parent, int style) { | 165 public this (Composite parent, int style) { |
160 super (parent, checkStyle (style)); | 166 super (parent, checkStyle (style)); |
1486 return itemCount; | 1492 return itemCount; |
1487 } | 1493 } |
1488 | 1494 |
1489 /** | 1495 /** |
1490 * Returns the height of the area which would be used to | 1496 * Returns the height of the area which would be used to |
1491 * display <em>one</em> of the items in the receiver's. | 1497 * display <em>one</em> of the items in the receiver. |
1492 * | 1498 * |
1493 * @return the height of one item | 1499 * @return the height of one item |
1494 * | 1500 * |
1495 * @exception DWTException <ul> | 1501 * @exception DWTException <ul> |
1496 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> | 1502 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |