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.custom.CTabFolder; |
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 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
@ComponentElement |
32 | 12 | public class CTabFolderComponent extends CompositeComponent { |
33 | |
|
34 | |
private GradientInfo selectionBackgroundGradient; |
35 | |
|
36 | |
@RenderingPolicy(targetType = TargetType.NONE) |
37 | |
@ComponentAttribute |
38 | |
@FieldDescription("選択状態") |
39 | |
public String selection; |
40 | |
|
41 | |
@RenderingPolicy(conversionType = ConversionType.INT, targetType = TargetType.FIELD) |
42 | |
@ComponentAttribute |
43 | |
@FieldDescription("縦方向マージン") |
44 | |
public String marginHeight; |
45 | |
|
46 | |
@RenderingPolicy(conversionType = ConversionType.INT, targetType = TargetType.FIELD) |
47 | |
@ComponentAttribute |
48 | |
@FieldDescription("横方向マージン") |
49 | |
public String marginWidth; |
50 | |
|
51 | |
@RenderingPolicy(conversionType = ConversionType.BOOLEAN) |
52 | |
@ComponentAttribute |
53 | |
@FieldDescription("枠線の表示状態") |
54 | |
public String borderVisible; |
55 | |
|
56 | |
@RenderingPolicy(conversionType = ConversionType.BOOLEAN) |
57 | |
@ComponentAttribute |
58 | |
@FieldDescription("最大化状態") |
59 | |
public String maximized; |
60 | |
|
61 | |
@RenderingPolicy(conversionType = ConversionType.BOOLEAN) |
62 | |
@ComponentAttribute |
63 | |
@FieldDescription("最大化ボタンの表示状態") |
64 | |
public String maximizeVisible; |
65 | |
|
66 | |
@RenderingPolicy(conversionType = ConversionType.BOOLEAN) |
67 | |
@ComponentAttribute |
68 | |
@FieldDescription("最小化状態") |
69 | |
public String minimized; |
70 | |
|
71 | |
@RenderingPolicy(conversionType = ConversionType.BOOLEAN) |
72 | |
@ComponentAttribute |
73 | |
@FieldDescription("最小化ボタンの表示状態") |
74 | |
public String minimizeVisible; |
75 | |
|
76 | |
@RenderingPolicy(conversionType = ConversionType.INT) |
77 | |
@ComponentAttribute |
78 | |
@FieldDescription("タブに表示される最小表示文字数") |
79 | |
public String minimumCharacters; |
80 | |
|
81 | |
@RenderingPolicy(conversionType = ConversionType.BOOLEAN) |
82 | |
@ComponentAttribute |
83 | |
@FieldDescription("MRU 表示状態") |
84 | |
public String mruVisible; |
85 | |
|
86 | |
@RenderingPolicy(targetType = TargetType.NONE) |
87 | |
@ComponentAttribute |
88 | |
@FieldDescription("選択タブの背景色") |
89 | |
public String selectionBackground; |
90 | |
|
91 | |
@RenderingPolicy(conversionType = ConversionType.IMAGE) |
92 | |
@ComponentAttribute |
93 | |
@FieldDescription("選択タブの背景イメージ") |
94 | |
public String selectionBackgroundImage; |
95 | |
|
96 | |
@RenderingPolicy(conversionType = ConversionType.COLOR) |
97 | |
@ComponentAttribute |
98 | |
@FieldDescription("選択タブの前景色") |
99 | |
public String selectionForeground; |
100 | |
|
101 | |
@RenderingPolicy(conversionType = ConversionType.BOOLEAN) |
102 | |
@ComponentAttribute |
103 | |
@FieldDescription("シンプル表示状態") |
104 | |
public String simple; |
105 | |
|
106 | |
@RenderingPolicy(conversionType = ConversionType.BOOLEAN) |
107 | |
@ComponentAttribute |
108 | |
@FieldDescription("単一表示モード") |
109 | |
public String single; |
110 | |
|
111 | |
@RenderingPolicy(conversionType = ConversionType.INT) |
112 | |
@ComponentAttribute |
113 | |
@FieldDescription("タブの高さ") |
114 | |
public String tabHeight; |
115 | |
|
116 | |
@RenderingPolicy(conversionType = ConversionType.INT) |
117 | |
@ComponentAttribute |
118 | |
@FieldDescription("タブ位置") |
119 | |
public String tabPosition; |
120 | |
|
121 | |
@RenderingPolicy(conversionType = ConversionType.BOOLEAN) |
122 | |
@ComponentAttribute |
123 | |
@FieldDescription("未選択タブのクローズボタン表示状態") |
124 | |
public String unselectedCloseVisible; |
125 | |
|
126 | |
@RenderingPolicy(conversionType = ConversionType.BOOLEAN) |
127 | |
@ComponentAttribute |
128 | |
@FieldDescription("未選択タブのイメージ表示状態") |
129 | |
public String unselectedImageVisible; |
130 | |
|
131 | |
|
132 | |
|
133 | |
|
134 | |
|
135 | |
|
136 | |
public GradientInfo getSelectionBackgroundGradient() { |
137 | 12 | return this.selectionBackgroundGradient; |
138 | |
} |
139 | |
|
140 | |
|
141 | |
|
142 | |
|
143 | |
|
144 | |
|
145 | |
|
146 | |
public void setSelectionBackgroundGradient( |
147 | |
final GradientInfo selectionBackgroundGradient) { |
148 | 4 | this.selectionBackgroundGradient = selectionBackgroundGradient; |
149 | 4 | } |
150 | |
} |