KickJava   Java API By Example, From Geeks To Geeks.

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


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 import javax.faces.event.AbortProcessingException;
19
20 /**
21  * @author Manfred Geiler (latest modification by $Author: mwessendorf $)
22  * @version $Revision: 1.2 $ $Date: 2004/07/01 22:00:50 $
23  */

24 public abstract class UIComponent
25         implements StateHolder
26 {
27     public UIComponent()
28     {
29     }
30
31     public abstract java.util.Map JavaDoc getAttributes();
32
33     public abstract javax.faces.el.ValueBinding getValueBinding(java.lang.String JavaDoc name);
34
35     public abstract void setValueBinding(java.lang.String JavaDoc name,
36                                          javax.faces.el.ValueBinding binding);
37
38     public abstract java.lang.String JavaDoc getClientId(javax.faces.context.FacesContext context);
39
40     public abstract java.lang.String JavaDoc getFamily();
41
42     public abstract java.lang.String JavaDoc getId();
43
44     public abstract void setId(java.lang.String JavaDoc id);
45
46     public abstract javax.faces.component.UIComponent getParent();
47
48     public abstract void setParent(javax.faces.component.UIComponent parent);
49
50     public abstract boolean isRendered();
51
52     public abstract void setRendered(boolean rendered);
53
54     public abstract java.lang.String JavaDoc getRendererType();
55
56     public abstract void setRendererType(java.lang.String JavaDoc rendererType);
57
58     public abstract boolean getRendersChildren();
59
60     public abstract java.util.List JavaDoc getChildren();
61
62     public abstract int getChildCount();
63
64     public abstract javax.faces.component.UIComponent findComponent(java.lang.String JavaDoc expr);
65
66     public abstract java.util.Map JavaDoc getFacets();
67
68     public abstract javax.faces.component.UIComponent getFacet(java.lang.String JavaDoc name);
69
70     public abstract java.util.Iterator JavaDoc getFacetsAndChildren();
71
72     public abstract void broadcast(javax.faces.event.FacesEvent event)
73             throws AbortProcessingException;
74
75     public abstract void decode(javax.faces.context.FacesContext context);
76
77     public abstract void encodeBegin(javax.faces.context.FacesContext context)
78             throws java.io.IOException JavaDoc;
79
80     public abstract void encodeChildren(javax.faces.context.FacesContext context)
81             throws java.io.IOException JavaDoc;
82
83     public abstract void encodeEnd(javax.faces.context.FacesContext context)
84             throws java.io.IOException JavaDoc;
85
86     protected abstract void addFacesListener(javax.faces.event.FacesListener listener);
87
88     protected abstract javax.faces.event.FacesListener[] getFacesListeners(java.lang.Class JavaDoc clazz);
89
90     protected abstract void removeFacesListener(javax.faces.event.FacesListener listener);
91
92     public abstract void queueEvent(javax.faces.event.FacesEvent event);
93
94     public abstract void processRestoreState(javax.faces.context.FacesContext context,
95                                              java.lang.Object JavaDoc state);
96
97     public abstract void processDecodes(javax.faces.context.FacesContext context);
98
99     public abstract void processValidators(javax.faces.context.FacesContext context);
100
101     public abstract void processUpdates(javax.faces.context.FacesContext context);
102
103     public abstract java.lang.Object JavaDoc processSaveState(javax.faces.context.FacesContext context);
104
105     protected abstract javax.faces.context.FacesContext getFacesContext();
106
107     protected abstract javax.faces.render.Renderer getRenderer(javax.faces.context.FacesContext context);
108 }
109
Popular Tags