diff options
author | Veronika Irvine <veronika> | 2005-07-19 20:57:23 +0000 |
---|---|---|
committer | Veronika Irvine <veronika> | 2005-07-19 20:57:23 +0000 |
commit | fac5adc35b97d02c901ca4ea2a6b31fd4c0cace6 (patch) | |
tree | df4b8b5a93eb96ad840bf7cac32ac5a85c013cc4 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java | |
parent | edcf7c0e3595e65e30021cf83de1448eadf495c1 (diff) | |
download | eclipse.platform.swt-fac5adc35b97d02c901ca4ea2a6b31fd4c0cace6.tar.gz eclipse.platform.swt-fac5adc35b97d02c901ca4ea2a6b31fd4c0cace6.tar.xz eclipse.platform.swt-fac5adc35b97d02c901ca4ea2a6b31fd4c0cace6.zip |
Add reorderable columns to Tree
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java index 3e9a97fee5..d66bc91fc0 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java @@ -218,6 +218,31 @@ public int getAlignment () { } /** + * Gets the moveable attribute. A column that is + * not moveable cannot be reordered by the user + * by dragging the header but may be reordered + * by the programmer. + * + * @return the moveable attribute + * + * @exception SWTException <ul> + * <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 Tree#getColumnOrder() + * @see Tree#setColumnOrder(int[]) + * @see TreeColumn#setMoveable(boolean) + * @see SWT#Move + * + * @since 3.2 + */ +/*public*/ boolean getMoveable() { + checkWidget(); + return OS.gtk_tree_view_column_get_reorderable (handle); +} + +/** * Returns the receiver's parent, which must be a <code>Tree</code>. * * @return the receiver's parent @@ -474,6 +499,32 @@ public void setImage (Image image) { } /** + * Sets the moveable attribute. A column that is + * moveable can be reordered by the user by dragging + * the header. A column that is not moveable cannot be + * dragged by the user but may be reordered + * by the programmer. + * + * @param moveable the moveable attribute + * + * @exception SWTException <ul> + * <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 Tree#setColumnOrder(int[]) + * @see Tree#getColumnOrder() + * @see TreeeColumn#getMoveable() + * @see SWT#Move + * + * @since 3.2 + */ +/*public*/ void setMoveable (boolean moveable) { + checkWidget(); + OS.gtk_tree_view_column_set_reorderable (handle, moveable); +} + +/** * Sets the resizable attribute. A column that is * not resizable cannot be dragged by the user but * may be resized by the programmer. |