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.widgets.ToolItem;
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.EnablesDependable;
26 import org.seasar.uruma.component.base.AbstractItemComponent;
27
28
29
30
31
32
33 @ComponentElement
34 public class ToolItemComponent extends AbstractItemComponent implements
35 EnablesDependable {
36
37 @RenderingPolicy(conversionType = ConversionType.IMAGE)
38 @ComponentAttribute
39 @FieldDescription("選択不可時イメージパス")
40 public String disabledImage;
41
42 @RenderingPolicy(conversionType = ConversionType.BOOLEAN)
43 @ComponentAttribute
44 @FieldDescription("選択可能状態")
45 public String enabled;
46
47 @RenderingPolicy(conversionType = ConversionType.IMAGE)
48 @ComponentAttribute
49 @FieldDescription("選択時イメージパス")
50 public String hotImage;
51
52 @RenderingPolicy(conversionType = ConversionType.BOOLEAN)
53 @ComponentAttribute
54 @FieldDescription("選択状態")
55 public String selection;
56
57 @RenderingPolicy(conversionType = ConversionType.TEXT)
58 @ComponentAttribute
59 @FieldDescription("ツールチップテキスト")
60 public String toolTipText;
61
62 @RenderingPolicy(conversionType = ConversionType.INT)
63 @ComponentAttribute
64 @FieldDescription("幅")
65 public String width;
66
67 @RenderingPolicy(targetType = TargetType.NONE)
68 @ComponentAttribute
69 @FieldDescription("依存先コンポーネントのID")
70 public String enablesDependingId;
71
72 @RenderingPolicy(targetType = TargetType.NONE)
73 @ComponentAttribute
74 @FieldDescription("依存方法")
75 public String enablesFor;
76
77
78
79
80 public String getEnablesDependingId() {
81 return this.enablesDependingId;
82 }
83
84
85
86
87
88
89
90 public void setEnablesDependingId(final String enablesDependingId) {
91 this.enablesDependingId = enablesDependingId;
92 }
93
94
95
96
97 public String getEnablesFor() {
98 return this.enablesFor;
99 }
100
101
102
103
104
105
106
107 public void setEnablesFor(final String enablesFor) {
108 this.enablesFor = enablesFor;
109 }
110 }