diff options
author | Grant Gayed <ggayed> | 2003-03-07 16:46:27 +0000 |
---|---|---|
committer | Grant Gayed <ggayed> | 2003-03-07 16:46:27 +0000 |
commit | a87898727b3c7532ca97709bca44b72c5f8e3e09 (patch) | |
tree | 8ccc74e3284bee5fbbd164ec0b1d8e611153494f /examples | |
parent | 794658de41efd7bd2420f00c4800c9abafc56238 (diff) | |
download | eclipse.platform.swt-a87898727b3c7532ca97709bca44b72c5f8e3e09.tar.gz eclipse.platform.swt-a87898727b3c7532ca97709bca44b72c5f8e3e09.tar.xz eclipse.platform.swt-a87898727b3c7532ca97709bca44b72c5f8e3e09.zip |
*** empty log message ***
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TableTab.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TableTab.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TableTab.java index a45a8509a3..8360f4e636 100755 --- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TableTab.java +++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TableTab.java @@ -19,7 +19,7 @@ class TableTab extends ScrollableTab { Group tableGroup, tableItemGroup; /* Style widgets added to the "Style" group */ - Button checkButton, fullSelectionButton; + Button checkButton, fullSelectionButton, hideSelectionButton; /* Display widgets added to the "Display" group */ Button headerVisibleButton, linesVisibleButton; @@ -166,6 +166,7 @@ class TableTab extends ScrollableTab { if (horizontalButton.getSelection ()) style |= SWT.H_SCROLL; if (checkButton.getSelection ()) style |= SWT.CHECK; if (fullSelectionButton.getSelection ()) style |= SWT.FULL_SELECTION; + if (hideSelectionButton.getSelection ()) style |= SWT.HIDE_SELECTION; if (borderButton.getSelection ()) style |= SWT.BORDER; /* Create the table widget */ @@ -211,6 +212,8 @@ class TableTab extends ScrollableTab { checkButton.setText ("SWT.CHECK"); fullSelectionButton = new Button (styleGroup, SWT.CHECK); fullSelectionButton.setText ("SWT.FULL_SELECTION"); + hideSelectionButton = new Button (styleGroup, SWT.CHECK); + hideSelectionButton.setText ("SWT.HIDE_SELECTION"); } /** @@ -266,6 +269,7 @@ class TableTab extends ScrollableTab { setWidgetLinesVisible (); checkButton.setSelection ((table1.getStyle () & SWT.CHECK) != 0); fullSelectionButton.setSelection ((table1.getStyle () & SWT.FULL_SELECTION) != 0); + hideSelectionButton.setSelection ((table1.getStyle () & SWT.HIDE_SELECTION) != 0); } /** |