summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Northover <steve>2005-12-21 17:45:25 +0000
committerSteve Northover <steve>2005-12-21 17:45:25 +0000
commit075a49840c046c62dc7adb3fc54f6d6df5b0ad40 (patch)
treec79ff7c8cb91bd8fb12be0fe0b422f18b9f32696
parent71873338b82dfba9e79004bf4ca4bfdaaa8fba50 (diff)
downloadeclipse.platform.swt-075a49840c046c62dc7adb3fc54f6d6df5b0ad40.tar.gz
eclipse.platform.swt-075a49840c046c62dc7adb3fc54f6d6df5b0ad40.tar.xz
eclipse.platform.swt-075a49840c046c62dc7adb3fc54f6d6df5b0ad40.zip
121729 - in SWT, javadoc for Table.getColumns does document order
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java16
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java16
2 files changed, 30 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
index 8cac33e5bd..8c7e837d65 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
@@ -1380,6 +1380,7 @@ void fixItemHeight (boolean fixScroll) {
/**
* Returns the column at the given, zero-relative index in the
* receiver. Throws an exception if the index is out of range.
+ * Columns are returned in the order that they were created.
* If no <code>TableColumn</code>s were created by the programmer,
* this method will throw <code>ERROR_INVALID_RANGE</code> despite
* the fact that a single column of data may be visible in the table.
@@ -1396,6 +1397,12 @@ void fixItemHeight (boolean fixScroll) {
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
+ *
+ * @see Table#getColumnOrder()
+ * @see Table#setColumnOrder(int[])
+ * @see TableColumn#getMoveable()
+ * @see TableColumn#setMoveable(boolean)
+ * @see SWT#Move
*/
public TableColumn getColumn (int index) {
checkWidget ();
@@ -1468,7 +1475,8 @@ public int[] getColumnOrder () {
/**
* Returns an array of <code>TableColumn</code>s which are the
- * columns in the receiver. If no <code>TableColumn</code>s were
+ * columns in the receiver. Columns are returned in the order
+ * that they were created. If no <code>TableColumn</code>s were
* created by the programmer, the array is empty, despite the fact
* that visually, one column of items may be visible. This occurs
* when the programmer uses the table like a list, adding items but
@@ -1485,6 +1493,12 @@ public int[] getColumnOrder () {
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
+ *
+ * @see Table#getColumnOrder()
+ * @see Table#setColumnOrder(int[])
+ * @see TableColumn#getMoveable()
+ * @see TableColumn#setMoveable(boolean)
+ * @see SWT#Move
*/
public TableColumn [] getColumns () {
checkWidget ();
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
index b27f2cfac5..120d9dc001 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
@@ -1377,6 +1377,7 @@ Point getImageSize () {
/**
* Returns the column at the given, zero-relative index in the
* receiver. Throws an exception if the index is out of range.
+ * Columns are returned in the order that they were created.
* If no <code>TreeColumn</code>s were created by the programmer,
* this method will throw <code>ERROR_INVALID_RANGE</code> despite
* the fact that a single column of data may be visible in the tree.
@@ -1394,6 +1395,12 @@ Point getImageSize () {
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
+ * @see Tree#getColumnOrder()
+ * @see Tree#setColumnOrder(int[])
+ * @see TreeColumn#getMoveable()
+ * @see TreeColumn#setMoveable(boolean)
+ * @see SWT#Move
+ *
* @since 3.1
*/
public TreeColumn getColumn (int index) {
@@ -1465,7 +1472,8 @@ public int[] getColumnOrder () {
/**
* Returns an array of <code>TreeColumn</code>s which are the
- * columns in the receiver. If no <code>TreeColumn</code>s were
+ * columns in the receiver. Columns are returned in the order
+ * that they were created. If no <code>TreeColumn</code>s were
* created by the programmer, the array is empty, despite the fact
* that visually, one column of items may be visible. This occurs
* when the programmer uses the tree like a list, adding items but
@@ -1483,6 +1491,12 @@ public int[] getColumnOrder () {
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
+ * @see Tree#getColumnOrder()
+ * @see Tree#setColumnOrder(int[])
+ * @see TreeColumn#getMoveable()
+ * @see TreeColumn#setMoveable(boolean)
+ * @see SWT#Move
+ *
* @since 3.1
*/
public TreeColumn [] getColumns () {