KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > faces > component > UIColumn


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package javax.faces.component;
17
18
19
20 /**
21  * see Javadoc of JSF Specification
22  *
23  * @author Manfred Geiler (latest modification by $Author: mwessendorf $)
24  * @version $Revision: 1.5 $ $Date: 2004/07/01 22:00:50 $
25  */

26 public class UIColumn
27         extends UIComponentBase
28 {
29     private static final String JavaDoc FOOTER_FACET_NAME = "footer";
30     private static final String JavaDoc HEADER_FACET_NAME = "header";
31     
32     public void setFooter(UIComponent footer)
33     {
34         getFacets().put(FOOTER_FACET_NAME, footer);
35     }
36
37     public UIComponent getFooter()
38     {
39         return (UIComponent)getFacets().get(FOOTER_FACET_NAME);
40     }
41
42     public void setHeader(UIComponent header)
43     {
44         getFacets().put(HEADER_FACET_NAME, header);
45     }
46
47     public UIComponent getHeader()
48     {
49         return (UIComponent)getFacets().get(HEADER_FACET_NAME);
50     }
51
52
53     //------------------ GENERATED CODE BEGIN (do not modify!) --------------------
54

55     public static final String JavaDoc COMPONENT_TYPE = "javax.faces.Column";
56     public static final String JavaDoc COMPONENT_FAMILY = "javax.faces.Column";
57
58
59     public UIColumn()
60     {
61     }
62
63     public String JavaDoc getFamily()
64     {
65         return COMPONENT_FAMILY;
66     }
67
68
69     //------------------ GENERATED CODE END ---------------------------------------
70
}
71
Popular Tags