Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
HtmlOutputLabelTagBase |
|
| 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.shared_impl.taglib.html; | |
20 | ||
21 | import org.apache.myfaces.shared_impl.renderkit.html.HTML; | |
22 | ||
23 | import javax.faces.component.UIComponent; | |
24 | ||
25 | ||
26 | /** | |
27 | * @author Manfred Geiler (latest modification by $Author: cagatay $) | |
28 | * @author Martin Marinschek | |
29 | * @version $Revision: 606793 $ $Date: 2007-12-25 10:20:46 -0500 (Tue, 25 Dec 2007) $ | |
30 | * @deprecated use {@link HtmlOutputLabelELTagBase} instead | |
31 | */ | |
32 | 0 | public abstract class HtmlOutputLabelTagBase |
33 | extends org.apache.myfaces.shared_impl.taglib.html.HtmlComponentTagBase | |
34 | { | |
35 | // UIComponent attributes --> already implemented in UIComponentTagBase | |
36 | ||
37 | // user role attributes --> already implemented in UIComponentTagBase | |
38 | ||
39 | // HTML universal attributes --> already implemented in HtmlComponentTagBase | |
40 | ||
41 | // HTML event handler attributes --> already implemented in HtmlComponentTagBase | |
42 | ||
43 | // HTML label attributes | |
44 | private String _accesskey; | |
45 | private String _onblur; | |
46 | private String _onfocus; | |
47 | ||
48 | // UIOutput attributes | |
49 | // value and converterId --> already implemented in UIComponentTagBase | |
50 | ||
51 | //HTMLOutputLabel attributes | |
52 | private String _for; | |
53 | ||
54 | public void release() { | |
55 | 0 | super.release(); |
56 | 0 | _accesskey=null; |
57 | 0 | _onblur=null; |
58 | 0 | _onfocus=null; |
59 | 0 | _for=null; |
60 | 0 | } |
61 | ||
62 | protected void setProperties(UIComponent component) | |
63 | { | |
64 | 0 | super.setProperties(component); |
65 | ||
66 | 0 | setStringProperty(component, HTML.ACCESSKEY_ATTR, _accesskey); |
67 | 0 | setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.ONBLUR_ATTR, _onblur); |
68 | 0 | setStringProperty(component, HTML.ONFOCUS_ATTR, _onfocus); |
69 | ||
70 | 0 | setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.FOR_ATTR, _for); |
71 | 0 | } |
72 | ||
73 | public void setAccesskey(String accesskey) | |
74 | { | |
75 | 0 | _accesskey = accesskey; |
76 | 0 | } |
77 | ||
78 | public void setOnblur(String onblur) | |
79 | { | |
80 | 0 | _onblur = onblur; |
81 | 0 | } |
82 | ||
83 | public void setOnfocus(String onfocus) | |
84 | { | |
85 | 0 | _onfocus = onfocus; |
86 | 0 | } |
87 | ||
88 | public void setFor(String aFor) | |
89 | { | |
90 | 0 | _for = aFor; |
91 | 0 | } |
92 | } |