Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ComponentResourceContainer |
|
| 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 org.apache.myfaces.component; | |
20 | ||
21 | import java.io.IOException; | |
22 | ||
23 | import javax.faces.component.UIPanel; | |
24 | import javax.faces.context.FacesContext; | |
25 | ||
26 | import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent; | |
27 | ||
28 | /** | |
29 | * Dummy class that is used as a container for resources | |
30 | * (see JSF 2.0 rev A UIViewRoot.addComponentResource javadoc) | |
31 | * | |
32 | * @author Leonardo Uribe (latest modification by $Author$) | |
33 | * @version $Revision$ $Date$ | |
34 | * @since 2.0.2 | |
35 | * | |
36 | */ | |
37 | @JSFComponent | |
38 | public class ComponentResourceContainer extends UIPanel | |
39 | { | |
40 | static public final String COMPONENT_FAMILY = | |
41 | "javax.faces.Panel"; | |
42 | static public final String COMPONENT_TYPE = | |
43 | "javax.faces.ComponentResourceContainer"; | |
44 | ||
45 | /** | |
46 | * Construct an instance of the UIPanel. | |
47 | */ | |
48 | public ComponentResourceContainer() | |
49 | 0 | { |
50 | 0 | setRendererType(null); |
51 | 0 | } |
52 | ||
53 | @Override | |
54 | public String getFamily() | |
55 | { | |
56 | 0 | return COMPONENT_FAMILY; |
57 | } | |
58 | ||
59 | @Override | |
60 | public void encodeBegin(FacesContext context) throws IOException | |
61 | { | |
62 | 0 | } |
63 | ||
64 | @Override | |
65 | public void encodeChildren(FacesContext context) throws IOException | |
66 | { | |
67 | 0 | } |
68 | ||
69 | @Override | |
70 | public void encodeEnd(FacesContext context) throws IOException | |
71 | { | |
72 | 0 | } |
73 | ||
74 | @Override | |
75 | public void encodeAll(FacesContext context) throws IOException | |
76 | { | |
77 | 0 | } |
78 | } |