Mercurial > projects > dwt-addons
comparison dwtx/jface/viewers/CellEditor.d @ 69:07b9d96fd764
Make nested class CellEditor.LayoutData a top level class to omit compiler errors "forward reference"
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 19 May 2008 13:41:06 +0200 |
parents | 644f1334b451 |
children | 46a6e0e6ccd4 |
comparison
equal
deleted
inserted
replaced
68:7943b8e4206d | 69:07b9d96fd764 |
---|---|
27 import dwtx.jface.util.PropertyChangeEvent; | 27 import dwtx.jface.util.PropertyChangeEvent; |
28 import dwtx.jface.util.SafeRunnable; | 28 import dwtx.jface.util.SafeRunnable; |
29 | 29 |
30 import dwt.dwthelper.utils; | 30 import dwt.dwthelper.utils; |
31 | 31 |
32 /** | |
33 * Struct-like layout data for cell editors, with reasonable defaults | |
34 * for all fields. | |
35 */ | |
36 public static class LayoutData { | |
37 /** | |
38 * Horizontal alignment; <code>DWT.LEFT</code> by default. | |
39 */ | |
40 public int horizontalAlignment = DWT.LEFT; | |
41 | |
42 /** | |
43 * Indicates control grabs additional space; <code>true</code> by default. | |
44 */ | |
45 public bool grabHorizontal = true; | |
46 | |
47 /** | |
48 * Minimum width in pixels; <code>50</code> pixels by default. | |
49 */ | |
50 public int minimumWidth = 50; | |
51 } | |
32 /** | 52 /** |
33 * Abstract base class for cell editors. Implements property change listener handling, | 53 * Abstract base class for cell editors. Implements property change listener handling, |
34 * and DWT window management. | 54 * and DWT window management. |
35 * <p> | 55 * <p> |
36 * Subclasses implement particular kinds of cell editors. This package contains various | 56 * Subclasses implement particular kinds of cell editors. This package contains various |
92 /** | 112 /** |
93 * This cell editor's style | 113 * This cell editor's style |
94 */ | 114 */ |
95 private int style = defaultStyle; | 115 private int style = defaultStyle; |
96 | 116 |
97 /** | 117 //public alias dwtx.jface.viewers.CellEditor.LayoutData LayoutData; |
98 * Struct-like layout data for cell editors, with reasonable defaults | |
99 * for all fields. | |
100 */ | |
101 public static class LayoutData { | |
102 /** | |
103 * Horizontal alignment; <code>DWT.LEFT</code> by default. | |
104 */ | |
105 public int horizontalAlignment = DWT.LEFT; | |
106 | |
107 /** | |
108 * Indicates control grabs additional space; <code>true</code> by default. | |
109 */ | |
110 public bool grabHorizontal = true; | |
111 | |
112 /** | |
113 * Minimum width in pixels; <code>50</code> pixels by default. | |
114 */ | |
115 public int minimumWidth = 50; | |
116 } | |
117 | |
118 /** | 118 /** |
119 * Property name for the copy action | 119 * Property name for the copy action |
120 */ | 120 */ |
121 public static const String COPY = "copy"; //$NON-NLS-1$ | 121 public static const String COPY = "copy"; //$NON-NLS-1$ |
122 | 122 |