1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.seasar.uruma.component.jface;
17
18 import org.eclipse.swt.layout.RowLayout;
19 import org.seasar.uruma.annotation.ComponentAttribute;
20 import org.seasar.uruma.annotation.ComponentElement;
21 import org.seasar.uruma.annotation.FieldDescription;
22 import org.seasar.uruma.annotation.RenderingPolicy;
23 import org.seasar.uruma.annotation.RenderingPolicy.ConversionType;
24 import org.seasar.uruma.annotation.RenderingPolicy.TargetType;
25 import org.seasar.uruma.component.LayoutInfo;
26 import org.seasar.uruma.component.base.AbstractUIElement;
27
28
29
30
31
32
33 @ComponentElement
34 public class RowLayoutInfo extends AbstractUIElement implements
35 LayoutInfo<RowDataInfo> {
36 private RowDataInfo commonRowDataInfo;
37
38 @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.BOOLEAN)
39 @ComponentAttribute
40 @FieldDescription("fill 属性")
41 public String fill;
42
43 @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.BOOLEAN)
44 @ComponentAttribute
45 @FieldDescription("justify 属性")
46 public String justify;
47
48 @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.INT)
49 @ComponentAttribute
50 @FieldDescription("marginBottom 属性")
51 public String marginBottom;
52
53 @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.INT)
54 @ComponentAttribute
55 @FieldDescription("marginHeight 属性")
56 public String marginHeight;
57
58 @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.INT)
59 @ComponentAttribute
60 @FieldDescription("marginLeft 属性")
61 public String marginLeft;
62
63 @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.INT)
64 @ComponentAttribute
65 @FieldDescription("marginRight 属性")
66 public String marginRight;
67
68 @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.INT)
69 @ComponentAttribute
70 @FieldDescription("marginTop 属性")
71 public String marginTop;
72
73 @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.INT)
74 @ComponentAttribute
75 @FieldDescription("marginWidth 属性")
76 public String marginWidth;
77
78 @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.BOOLEAN)
79 @ComponentAttribute
80 @FieldDescription("pack 属性")
81 public String pack;
82
83 @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.INT)
84 @ComponentAttribute
85 @FieldDescription("spacing 属性")
86 public String spacing;
87
88 @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.SWT_CONST)
89 @ComponentAttribute
90 @FieldDescription("conversionType 属性")
91 public String conversionType;
92
93 @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.SWT_CONST)
94 @ComponentAttribute
95 @FieldDescription("type 属性")
96 public String type;
97
98 @RenderingPolicy(targetType = TargetType.FIELD, conversionType = ConversionType.BOOLEAN)
99 @ComponentAttribute
100 @FieldDescription("wrap 属性")
101 public String wrap;
102
103
104
105
106
107
108 public RowDataInfo getCommonRowDataInfo() {
109 return this.commonRowDataInfo;
110 }
111
112
113
114
115
116
117
118 public void setCommonRowDataInfo(final RowDataInfo commonRowDataInfo) {
119 this.commonRowDataInfo = commonRowDataInfo;
120 }
121
122
123
124
125 public RowDataInfo getCommonLayoutDataInfo() {
126 return commonRowDataInfo;
127 }
128
129
130
131
132 public void setCommonLayoutDataInfo(final RowDataInfo layoutDataInfo) {
133 this.commonRowDataInfo = layoutDataInfo;
134 }
135 }