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.seasar.uruma.annotation.ComponentAttribute; |
19 | |
import org.seasar.uruma.annotation.ComponentElement; |
20 | |
import org.seasar.uruma.annotation.FieldDescription; |
21 | |
import org.seasar.uruma.annotation.RenderingPolicy; |
22 | |
import org.seasar.uruma.annotation.RenderingPolicy.TargetType; |
23 | |
import org.seasar.uruma.component.EnablesDependable; |
24 | |
import org.seasar.uruma.component.base.AbstractItemComponent; |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
@ComponentElement |
33 | 168 | public class MenuItemComponent extends AbstractItemComponent implements |
34 | |
EnablesDependable { |
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
public static final String PUSH = "PUSH"; |
40 | |
|
41 | |
|
42 | |
|
43 | |
|
44 | |
public static final String RADIO = "RADIO"; |
45 | |
|
46 | |
|
47 | |
|
48 | |
|
49 | |
public static final String CHECK = "CHECK"; |
50 | |
|
51 | |
|
52 | |
|
53 | |
|
54 | |
@RenderingPolicy(targetType = TargetType.NONE) |
55 | |
@ComponentAttribute |
56 | |
@FieldDescription("アクセラレータ") |
57 | |
public String accelerator; |
58 | |
|
59 | |
|
60 | |
|
61 | |
|
62 | |
@RenderingPolicy(targetType = TargetType.NONE) |
63 | |
@ComponentAttribute |
64 | |
@FieldDescription("イネーブル状態") |
65 | |
public String enabled; |
66 | |
|
67 | |
|
68 | |
|
69 | |
|
70 | |
@RenderingPolicy(targetType = TargetType.NONE) |
71 | |
@ComponentAttribute |
72 | |
@FieldDescription("選択状態") |
73 | |
public String selection; |
74 | |
|
75 | |
|
76 | |
|
77 | |
|
78 | |
@RenderingPolicy(targetType = TargetType.NONE) |
79 | |
@ComponentAttribute |
80 | |
@FieldDescription("選択不可時のイメージパス") |
81 | |
public String disabledImage; |
82 | |
|
83 | |
|
84 | |
|
85 | |
|
86 | |
@RenderingPolicy(targetType = TargetType.NONE) |
87 | |
@ComponentAttribute |
88 | |
@FieldDescription("選択時のイメージパス") |
89 | |
public String hoverImage; |
90 | |
|
91 | |
|
92 | |
|
93 | |
|
94 | |
@RenderingPolicy(targetType = TargetType.NONE) |
95 | |
@ComponentAttribute |
96 | |
@FieldDescription("説明テキスト") |
97 | |
public String description; |
98 | |
|
99 | |
|
100 | |
|
101 | |
|
102 | |
@RenderingPolicy(targetType = TargetType.NONE) |
103 | |
@ComponentAttribute |
104 | |
@FieldDescription("依存先コンポーネントID") |
105 | |
public String enablesDependingId; |
106 | |
|
107 | |
|
108 | |
|
109 | |
|
110 | |
@RenderingPolicy(targetType = TargetType.NONE) |
111 | |
@ComponentAttribute |
112 | |
@FieldDescription("依存方法") |
113 | |
public String enablesFor; |
114 | |
|
115 | |
|
116 | |
|
117 | |
|
118 | |
public String getEnablesDependingId() { |
119 | 108 | return this.enablesDependingId; |
120 | |
} |
121 | |
|
122 | |
|
123 | |
|
124 | |
|
125 | |
public String getEnablesFor() { |
126 | 108 | return this.enablesFor; |
127 | |
} |
128 | |
} |