Mercurial > projects > dwt-addons
comparison dwtx/jface/viewers/CellEditor.d @ 90:7ffeace6c47f
Update 3.4M7 to 3.4
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 06 Jul 2008 23:30:07 +0200 |
parents | 5df4896124c7 |
children |
comparison
equal
deleted
inserted
replaced
89:040da1cb0d76 | 90:7ffeace6c47f |
---|---|
33 import dwt.dwthelper.utils; | 33 import dwt.dwthelper.utils; |
34 | 34 |
35 /** | 35 /** |
36 * Struct-like layout data for cell editors, with reasonable defaults for | 36 * Struct-like layout data for cell editors, with reasonable defaults for |
37 * all fields. | 37 * all fields. |
38 * | |
39 * @noextend This class is not intended to be subclassed by clients. | |
38 */ | 40 */ |
39 public static class LayoutData { | 41 public static class LayoutData { |
40 /** | 42 /** |
41 * Horizontal alignment; <code>DWT.LEFT</code> by default. | 43 * Horizontal alignment; <code>DWT.LEFT</code> by default. |
42 */ | 44 */ |
54 public int minimumWidth = 50; | 56 public int minimumWidth = 50; |
55 | 57 |
56 /** | 58 /** |
57 * Minimum height in pixels; by default the height is aligned to the | 59 * Minimum height in pixels; by default the height is aligned to the |
58 * row-height | 60 * row-height |
61 * @since 3.4 | |
59 */ | 62 */ |
60 public int minimumHeight = DWT.DEFAULT; | 63 public int minimumHeight = DWT.DEFAULT; |
61 | 64 |
62 /** | 65 /** |
63 * The vertical alignment; <code>DWT.CENTER</code> by default. | 66 * The vertical alignment; <code>DWT.CENTER</code> by default. |
67 * @since 3.4 | |
64 */ | 68 */ |
65 public int verticalAlignment = DWT.CENTER; | 69 public int verticalAlignment = DWT.CENTER; |
66 } | 70 } |
67 /** | 71 /** |
68 * Abstract base class for cell editors. Implements property change listener | 72 * Abstract base class for cell editors. Implements property change listener |
264 */ | 268 */ |
265 public void create(Composite parent) { | 269 public void create(Composite parent) { |
266 Assert.isTrue(control is null); | 270 Assert.isTrue(control is null); |
267 control = createControl(parent); | 271 control = createControl(parent); |
268 // See 1GD5CA6: ITPUI:ALL - TaskView.setSelection does not work | 272 // See 1GD5CA6: ITPUI:ALL - TaskView.setSelection does not work |
269 // Control is created with getVisible()istrue by default. | 273 // Control is created with getVisible()is true by default. |
270 // This causes composite.setFocus() to work incorrectly. | 274 // This causes composite.setFocus() to work incorrectly. |
271 // The cell editor's control grabs focus instead, even if it is not | 275 // The cell editor's control grabs focus instead, even if it is not |
272 // active. | 276 // active. |
273 // Make the control invisible here by default. | 277 // Make the control invisible here by default. |
274 deactivate(); | 278 deactivate(); |
943 } | 947 } |
944 | 948 |
945 /** | 949 /** |
946 * @param event | 950 * @param event |
947 * deactivation event | 951 * deactivation event |
952 * @since 3.4 | |
948 * | 953 * |
949 */ | 954 */ |
950 protected void deactivate(ColumnViewerEditorDeactivationEvent event) { | 955 protected void deactivate(ColumnViewerEditorDeactivationEvent event) { |
951 deactivate(); | 956 deactivate(); |
952 } | 957 } |
961 * Clients may override, in particular, clients can return 0 to denote that | 966 * Clients may override, in particular, clients can return 0 to denote that |
962 * two subsequent mouse clicks in a cell should not be interpreted as a | 967 * two subsequent mouse clicks in a cell should not be interpreted as a |
963 * double click. | 968 * double click. |
964 * | 969 * |
965 * @return the timeout or <code>0</code> | 970 * @return the timeout or <code>0</code> |
971 * @since 3.4 | |
966 */ | 972 */ |
967 protected int getDoubleClickTimeout() { | 973 protected int getDoubleClickTimeout() { |
968 return Display.getCurrent().getDoubleClickTime(); | 974 return Display.getCurrent().getDoubleClickTime(); |
969 } | 975 } |
970 package int getDoubleClickTimeout_package() { | 976 package int getDoubleClickTimeout_package() { |