KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > faces > application > Application


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.application;
17
18 import javax.faces.FacesException;
19 import javax.faces.el.ReferenceSyntaxException;
20 import java.util.Collection JavaDoc;
21 import java.util.Iterator JavaDoc;
22 import java.util.Locale JavaDoc;
23
24 /**
25  * @author Manfred Geiler (latest modification by $Author: mwessendorf $)
26  * @version $Revision: 1.4 $ $Date: 2004/07/01 22:01:18 $
27  */

28 public abstract class Application
29 {
30     public abstract javax.faces.event.ActionListener getActionListener();
31
32     public abstract void setActionListener(javax.faces.event.ActionListener listener);
33
34     public abstract Locale JavaDoc getDefaultLocale();
35
36     public abstract void setDefaultLocale(Locale JavaDoc locale);
37
38     public abstract String JavaDoc getDefaultRenderKitId();
39
40     public abstract void setDefaultRenderKitId(String JavaDoc renderKitId);
41
42     public abstract String JavaDoc getMessageBundle();
43
44     public abstract void setMessageBundle(String JavaDoc bundle);
45
46     public abstract javax.faces.application.NavigationHandler getNavigationHandler();
47
48     public abstract void setNavigationHandler(javax.faces.application.NavigationHandler handler);
49
50     public abstract javax.faces.el.PropertyResolver getPropertyResolver();
51
52     public abstract void setPropertyResolver(javax.faces.el.PropertyResolver resolver);
53
54     public abstract javax.faces.el.VariableResolver getVariableResolver();
55
56     public abstract void setVariableResolver(javax.faces.el.VariableResolver resolver);
57
58     public abstract javax.faces.application.ViewHandler getViewHandler();
59
60     public abstract void setViewHandler(javax.faces.application.ViewHandler handler);
61
62     public abstract javax.faces.application.StateManager getStateManager();
63
64     public abstract void setStateManager(javax.faces.application.StateManager manager);
65
66     public abstract void addComponent(String JavaDoc componentType,
67                                       String JavaDoc componentClass);
68
69     public abstract javax.faces.component.UIComponent createComponent(String JavaDoc componentType)
70             throws FacesException;
71
72     public abstract javax.faces.component.UIComponent createComponent(javax.faces.el.ValueBinding componentBinding,
73                                                                       javax.faces.context.FacesContext context,
74                                                                       String JavaDoc componentType)
75             throws FacesException;
76
77     public abstract Iterator JavaDoc getComponentTypes();
78
79     public abstract void addConverter(String JavaDoc converterId,
80                                       String JavaDoc converterClass);
81
82     public abstract void addConverter(Class JavaDoc targetClass,
83                                       String JavaDoc converterClass);
84
85     public abstract javax.faces.convert.Converter createConverter(String JavaDoc converterId);
86
87     public abstract javax.faces.convert.Converter createConverter(Class JavaDoc targetClass);
88
89     public abstract Iterator JavaDoc getConverterIds();
90
91     public abstract Iterator JavaDoc getConverterTypes();
92
93     public abstract javax.faces.el.MethodBinding createMethodBinding(String JavaDoc ref,
94                                                                      Class JavaDoc[] params)
95             throws ReferenceSyntaxException;
96
97     public abstract Iterator JavaDoc getSupportedLocales();
98
99     public abstract void setSupportedLocales(Collection JavaDoc locales);
100
101     public abstract void addValidator(String JavaDoc validatorId,
102                                       String JavaDoc validatorClass);
103
104     public abstract javax.faces.validator.Validator createValidator(String JavaDoc validatorId)
105             throws FacesException;
106
107     public abstract Iterator JavaDoc getValidatorIds();
108
109     public abstract javax.faces.el.ValueBinding createValueBinding(String JavaDoc ref)
110             throws ReferenceSyntaxException;
111 }
112
Popular Tags