Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
UIColumn |
|
| 1.0;1 |
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 | @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 | 0 | getFacets().put(FOOTER_FACET_NAME, footer); |
36 | 0 | } |
37 | ||
38 | @JSFFacet | |
39 | public UIComponent getFooter() | |
40 | { | |
41 | 0 | return getFacet(FOOTER_FACET_NAME); |
42 | } | |
43 | ||
44 | public void setHeader(UIComponent header) | |
45 | { | |
46 | 4 | getFacets().put(HEADER_FACET_NAME, header); |
47 | 4 | } |
48 | ||
49 | @JSFFacet | |
50 | public UIComponent getHeader() | |
51 | { | |
52 | 0 | return getFacet(HEADER_FACET_NAME); |
53 | } | |
54 | ||
55 | /** | |
56 | * Get a string which uniquely identifies this UIComponent within the scope of the nearest ancestor NamingContainer | |
57 | * component. The id is not necessarily unique across all components in the current view. | |
58 | */ | |
59 | @JSFProperty(literalOnly=true, rtexprvalue=false) | |
60 | @Override | |
61 | public String getId() | |
62 | { | |
63 | 406 | return super.getId(); |
64 | } | |
65 | ||
66 | //------------------ GENERATED CODE BEGIN (do not modify!) -------------------- | |
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 | 42 | { |
73 | 42 | } |
74 | ||
75 | @Override | |
76 | public String getFamily() | |
77 | { | |
78 | 0 | return COMPONENT_FAMILY; |
79 | } | |
80 | ||
81 | // ------------------ GENERATED CODE END --------------------------------------- | |
82 | } |