Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
UIColumn |
|
| 0.0;0 |
1 | /* | |
2 | * Licensed to the Apache Software Foundation (ASF) under one | |
3 | * or more contributor license agreements. See the NOTICE file | |
4 | * distributed with this work for additional information | |
5 | * regarding copyright ownership. The ASF licenses this file | |
6 | * to you under the Apache License, Version 2.0 (the | |
7 | * "License"); you may not use this file except in compliance | |
8 | * with the License. You may obtain a copy of the License at | |
9 | * | |
10 | * http://www.apache.org/licenses/LICENSE-2.0 | |
11 | * | |
12 | * Unless required by applicable law or agreed to in writing, | |
13 | * software distributed under the License is distributed on an | |
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
15 | * KIND, either express or implied. See the License for the | |
16 | * specific language governing permissions and limitations | |
17 | * under the License. | |
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 | * see Javadoc of <a href="http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/index.html">JSF Specification</a> | |
26 | * | |
27 | * @author Manfred Geiler (latest modification by $Author: lu4242 $) | |
28 | * @version $Revision: 721588 $ $Date: 2008-11-28 19:03:35 -0500 (Fri, 28 Nov 2008) $ | |
29 | */ | |
30 | @JSFComponent | |
31 | public class UIColumn | |
32 | extends UIComponentBase | |
33 | { | |
34 | private static final String FOOTER_FACET_NAME = "footer"; | |
35 | private static final String HEADER_FACET_NAME = "header"; | |
36 | ||
37 | public void setFooter(UIComponent footer) | |
38 | { | |
39 | 0 | getFacets().put(FOOTER_FACET_NAME, footer); |
40 | 0 | } |
41 | ||
42 | @JSFFacet | |
43 | public UIComponent getFooter() | |
44 | { | |
45 | 0 | return getFacet(FOOTER_FACET_NAME); |
46 | } | |
47 | ||
48 | public void setHeader(UIComponent header) | |
49 | { | |
50 | 0 | getFacets().put(HEADER_FACET_NAME, header); |
51 | 0 | } |
52 | ||
53 | @JSFFacet | |
54 | public UIComponent getHeader() | |
55 | { | |
56 | 0 | return getFacet(HEADER_FACET_NAME); |
57 | } | |
58 | ||
59 | /** | |
60 | * Get a string which uniquely identifies this UIComponent within the scope of the nearest ancestor NamingContainer | |
61 | * component. The id is not necessarily unique across all components in the current view. | |
62 | */ | |
63 | @JSFProperty(literalOnly=true, rtexprvalue=false) | |
64 | @Override | |
65 | public String getId() | |
66 | { | |
67 | 0 | return super.getId(); |
68 | } | |
69 | ||
70 | //------------------ GENERATED CODE BEGIN (do not modify!) -------------------- | |
71 | ||
72 | public static final String COMPONENT_TYPE = "javax.faces.Column"; | |
73 | public static final String COMPONENT_FAMILY = "javax.faces.Column"; | |
74 | ||
75 | ||
76 | public UIColumn() | |
77 | 0 | { |
78 | 0 | } |
79 | ||
80 | public String getFamily() | |
81 | { | |
82 | 0 | return COMPONENT_FAMILY; |
83 | } | |
84 | ||
85 | ||
86 | //------------------ GENERATED CODE END --------------------------------------- | |
87 | } |