1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package javax.faces.component;
20
21 import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent;
22 import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFFacet;
23 import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFProperty;
24
25
26
27 @JSFComponent
28 public class UIColumn extends UIComponentBase
29 {
30 private static final String FOOTER_FACET_NAME = "footer";
31 private static final String HEADER_FACET_NAME = "header";
32
33 public void setFooter(UIComponent footer)
34 {
35 getFacets().put(FOOTER_FACET_NAME, footer);
36 }
37
38 @JSFFacet
39 public UIComponent getFooter()
40 {
41 return getFacet(FOOTER_FACET_NAME);
42 }
43
44 public void setHeader(UIComponent header)
45 {
46 getFacets().put(HEADER_FACET_NAME, header);
47 }
48
49 @JSFFacet
50 public UIComponent getHeader()
51 {
52 return getFacet(HEADER_FACET_NAME);
53 }
54
55
56
57
58
59 @JSFProperty(literalOnly=true, rtexprvalue=false)
60 @Override
61 public String getId()
62 {
63 return super.getId();
64 }
65
66
67
68 public static final String COMPONENT_TYPE = "javax.faces.Column";
69 public static final String COMPONENT_FAMILY = "javax.faces.Column";
70
71 public UIColumn()
72 {
73 }
74
75 @Override
76 public String getFamily()
77 {
78 return COMPONENT_FAMILY;
79 }
80
81
82 }