KickJava   Java API By Example, From Geeks To Geeks.

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


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.context.FacesContext;
19
20
21 /**
22  * see Javadoc of JSF Specification
23  *
24  * @author Manfred Geiler (latest modification by $Author: mwessendorf $)
25  * @version $Revision: 1.7 $ $Date: 2004/07/01 22:00:50 $
26  */

27 public class UISelectOne
28         extends UIInput
29 {
30     public static final String JavaDoc INVALID_MESSAGE_ID = "javax.faces.component.UISelectOne.INVALID";
31
32     public void validate(FacesContext context)
33     {
34         super.validate(context);
35         //TODO: see javadoc: iterate through UISelectItem and UISelectItems and check
36
//current value against these items
37
}
38
39
40     //------------------ GENERATED CODE BEGIN (do not modify!) --------------------
41

42     public static final String JavaDoc COMPONENT_TYPE = "javax.faces.SelectOne";
43     public static final String JavaDoc COMPONENT_FAMILY = "javax.faces.SelectOne";
44     private static final String JavaDoc DEFAULT_RENDERER_TYPE = "javax.faces.Menu";
45
46
47     public UISelectOne()
48     {
49         setRendererType(DEFAULT_RENDERER_TYPE);
50     }
51
52     public String JavaDoc getFamily()
53     {
54         return COMPONENT_FAMILY;
55     }
56
57
58     //------------------ GENERATED CODE END ---------------------------------------
59
}
60
Popular Tags