1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.myfaces.tobago.component;
21
22 import javax.faces.component.behavior.ClientBehaviorHolder;
23 import javax.faces.context.FacesContext;
24 import org.apache.myfaces.tobago.context.Markup;
25 import org.apache.myfaces.tobago.internal.component.AbstractUISegmentLayout;
26 import org.apache.myfaces.tobago.layout.SegmentJustify;
27 import org.apache.myfaces.tobago.layout.SegmentMeasureList;
28 import org.apache.myfaces.tobago.renderkit.css.CustomClass;
29 import org.apache.myfaces.tobago.internal.util.ArrayUtils;
30 import org.apache.myfaces.tobago.internal.util.StringUtils;
31 import org.apache.myfaces.tobago.internal.util.Deprecation;
32 import org.apache.myfaces.tobago.component.Tags;
33 import javax.annotation.Generated;
34 import javax.el.ELException;
35 import javax.faces.FacesException;
36 import java.util.Arrays;
37 import java.util.ArrayList;
38 import java.util.Collection;
39 import java.util.List;
40 import javax.el.MethodExpression;
41 import javax.el.ValueExpression;
42
43
44
45
46
47
48
49
50
51 @Generated("component.stg")
52 public class UISegmentLayout
53 extends AbstractUISegmentLayout implements ClientBehaviorHolder {
54
55 public static final String COMPONENT_TYPE = Tags.segmentLayout.componentType();
56
57 public static final String COMPONENT_FAMILY = "org.apache.myfaces.tobago.SegmentLayout";
58
59
60 enum PropertyKeys {
61 small,
62 markup,
63 large,
64 medium,
65 marginLarge,
66 extraSmall,
67 marginExtraSmall,
68 extraLarge,
69 marginExtraLarge,
70 justify,
71 marginSmall,
72 marginMedium,
73 customClass,
74 }
75
76 public String getFamily() {
77 return COMPONENT_FAMILY;
78 }
79
80
81
82
83
84
85
86
87 public org.apache.myfaces.tobago.layout.SegmentMeasureList getSmall() {
88 return (org.apache.myfaces.tobago.layout.SegmentMeasureList) getStateHelper().eval(PropertyKeys.small);
89 }
90
91 public void setSmall(org.apache.myfaces.tobago.layout.SegmentMeasureList small) {
92 getStateHelper().put(PropertyKeys.small, small);
93 }
94
95 public org.apache.myfaces.tobago.context.Markup getMarkup() {
96 Object object = getStateHelper().eval(PropertyKeys.markup);
97 if (object != null) {
98 return Markup.valueOf(object);
99 }
100 return null;
101 }
102
103 public void setMarkup(org.apache.myfaces.tobago.context.Markup markup) {
104 getStateHelper().put(PropertyKeys.markup, markup);
105 }
106
107
108
109
110
111
112
113 public org.apache.myfaces.tobago.layout.SegmentMeasureList getLarge() {
114 return (org.apache.myfaces.tobago.layout.SegmentMeasureList) getStateHelper().eval(PropertyKeys.large);
115 }
116
117 public void setLarge(org.apache.myfaces.tobago.layout.SegmentMeasureList large) {
118 getStateHelper().put(PropertyKeys.large, large);
119 }
120
121
122
123
124
125
126
127 public org.apache.myfaces.tobago.layout.SegmentMeasureList getMedium() {
128 return (org.apache.myfaces.tobago.layout.SegmentMeasureList) getStateHelper().eval(PropertyKeys.medium);
129 }
130
131 public void setMedium(org.apache.myfaces.tobago.layout.SegmentMeasureList medium) {
132 getStateHelper().put(PropertyKeys.medium, medium);
133 }
134
135
136
137
138
139
140
141 public java.lang.String getMarginLarge() {
142 return (java.lang.String) getStateHelper().eval(PropertyKeys.marginLarge);
143 }
144
145 public void setMarginLarge(java.lang.String marginLarge) {
146 getStateHelper().put(PropertyKeys.marginLarge, marginLarge);
147 }
148
149
150
151
152
153
154
155 public org.apache.myfaces.tobago.layout.SegmentMeasureList getExtraSmall() {
156 return (org.apache.myfaces.tobago.layout.SegmentMeasureList) getStateHelper().eval(PropertyKeys.extraSmall);
157 }
158
159 public void setExtraSmall(org.apache.myfaces.tobago.layout.SegmentMeasureList extraSmall) {
160 getStateHelper().put(PropertyKeys.extraSmall, extraSmall);
161 }
162
163
164
165
166
167
168
169 public java.lang.String getMarginExtraSmall() {
170 return (java.lang.String) getStateHelper().eval(PropertyKeys.marginExtraSmall);
171 }
172
173 public void setMarginExtraSmall(java.lang.String marginExtraSmall) {
174 getStateHelper().put(PropertyKeys.marginExtraSmall, marginExtraSmall);
175 }
176
177
178
179
180
181
182
183 public org.apache.myfaces.tobago.layout.SegmentMeasureList getExtraLarge() {
184 return (org.apache.myfaces.tobago.layout.SegmentMeasureList) getStateHelper().eval(PropertyKeys.extraLarge);
185 }
186
187 public void setExtraLarge(org.apache.myfaces.tobago.layout.SegmentMeasureList extraLarge) {
188 getStateHelper().put(PropertyKeys.extraLarge, extraLarge);
189 }
190
191
192
193
194
195
196
197 public java.lang.String getMarginExtraLarge() {
198 return (java.lang.String) getStateHelper().eval(PropertyKeys.marginExtraLarge);
199 }
200
201 public void setMarginExtraLarge(java.lang.String marginExtraLarge) {
202 getStateHelper().put(PropertyKeys.marginExtraLarge, marginExtraLarge);
203 }
204
205
206
207
208
209
210 public org.apache.myfaces.tobago.layout.SegmentJustify getJustify() {
211 return (org.apache.myfaces.tobago.layout.SegmentJustify) getStateHelper().eval(PropertyKeys.justify);
212 }
213
214 public void setJustify(org.apache.myfaces.tobago.layout.SegmentJustify justify) {
215 getStateHelper().put(PropertyKeys.justify, justify);
216 }
217
218
219
220
221
222
223
224 public java.lang.String getMarginSmall() {
225 return (java.lang.String) getStateHelper().eval(PropertyKeys.marginSmall);
226 }
227
228 public void setMarginSmall(java.lang.String marginSmall) {
229 getStateHelper().put(PropertyKeys.marginSmall, marginSmall);
230 }
231
232
233
234
235
236
237
238 public java.lang.String getMarginMedium() {
239 return (java.lang.String) getStateHelper().eval(PropertyKeys.marginMedium);
240 }
241
242 public void setMarginMedium(java.lang.String marginMedium) {
243 getStateHelper().put(PropertyKeys.marginMedium, marginMedium);
244 }
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263 public org.apache.myfaces.tobago.renderkit.css.CustomClass getCustomClass() {
264 return (org.apache.myfaces.tobago.renderkit.css.CustomClass) getStateHelper().eval(PropertyKeys.customClass);
265 }
266
267 public void setCustomClass(org.apache.myfaces.tobago.renderkit.css.CustomClass customClass) {
268 getStateHelper().put(PropertyKeys.customClass, customClass);
269 }
270
271
272 @Override
273 public void restoreState(FacesContext context, Object state) {
274
275 pushComponentToEL(context, this);
276 super.restoreState(context, state);
277 popComponentFromEL(context);
278 }
279
280 }