1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.seasar.teeda.core.taglib.html; |
17 | |
|
18 | |
import javax.faces.component.UIComponent; |
19 | |
import javax.faces.component.html.HtmlOutputLabel; |
20 | |
|
21 | |
import org.seasar.teeda.core.JsfConstants; |
22 | |
import org.seasar.teeda.core.taglib.UIComponentTagBase; |
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | 4 | public class OutputLabelTag extends UIComponentTagBase { |
28 | |
|
29 | |
private String forStr; |
30 | |
|
31 | |
public String getComponentType() { |
32 | 1 | return HtmlOutputLabel.COMPONENT_TYPE; |
33 | |
} |
34 | |
|
35 | |
public String getRendererType() { |
36 | 3 | return "javax.faces.Label"; |
37 | |
} |
38 | |
|
39 | |
protected void setProperties(UIComponent component) { |
40 | 1 | super.setProperties(component); |
41 | |
|
42 | 1 | setComponentProperty(component, JsfConstants.FOR_ATTR, forStr); |
43 | 1 | } |
44 | |
|
45 | |
public void release() { |
46 | 1 | super.release(); |
47 | 1 | forStr = null; |
48 | 1 | } |
49 | |
|
50 | |
public void setFor(String forStr) { |
51 | 2 | this.forStr = forStr; |
52 | 2 | } |
53 | |
|
54 | |
public String getFor() { |
55 | 1 | return forStr; |
56 | |
} |
57 | |
|
58 | |
} |