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.UIComponentBase;
23 import javax.faces.context.FacesContext;
24 import org.apache.commons.lang.ArrayUtils;
25 import org.apache.commons.lang.StringUtils;
26 import org.apache.myfaces.tobago.internal.util.Deprecation;
27 import org.apache.myfaces.tobago.renderkit.MarginValues;
28 import org.apache.myfaces.tobago.renderkit.SpacingValues;
29 import org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer;
30 import javax.el.ELException;
31 import javax.faces.FacesException;
32 import java.util.ArrayList;
33 import java.util.List;
34 import javax.el.MethodExpression;
35 import javax.el.ValueExpression;
36
37
38
39
40
41
42
43 public class UIStyle
44 extends UIComponentBase {
45
46 public static final String COMPONENT_TYPE = "org.apache.myfaces.tobago.Style";
47
48 public static final String COMPONENT_FAMILY = "org.apache.myfaces.tobago.Style";
49
50
51 enum PropertyKeys {
52 style,
53 file,
54 }
55
56 public String getFamily() {
57 return COMPONENT_FAMILY;
58 }
59
60
61
62
63
64
65 public java.lang.String getStyle() {
66 return (java.lang.String) getStateHelper().eval(PropertyKeys.style);
67 }
68
69 public void setStyle(java.lang.String style) {
70 getStateHelper().put(PropertyKeys.style, style);
71 }
72
73
74
75
76
77 public java.lang.String getFile() {
78 return (java.lang.String) getStateHelper().eval(PropertyKeys.file);
79 }
80
81 public void setFile(java.lang.String file) {
82 getStateHelper().put(PropertyKeys.file, file);
83 }
84
85
86
87 }