1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.myfaces.taglib.html.ext;
20
21 import org.apache.myfaces.shared_tomahawk.component.DisplayValueOnlyCapable;
22 import org.apache.myfaces.component.UserRoleAware;
23 import org.apache.myfaces.component.html.ext.HtmlSelectManyCheckbox;
24 import org.apache.myfaces.shared_tomahawk.taglib.html.HtmlSelectManyCheckboxTagBase;
25 import org.apache.myfaces.shared_tomahawk.renderkit.JSFAttr;
26
27 import javax.faces.component.UIComponent;
28
29
30
31
32
33
34 public class HtmlSelectManyCheckboxTag
35 extends HtmlSelectManyCheckboxTagBase
36 {
37 public String getComponentType()
38 {
39 return HtmlSelectManyCheckbox.COMPONENT_TYPE;
40 }
41
42 public String getRendererType()
43 {
44 return HtmlSelectManyCheckbox.DEFAULT_RENDERER_TYPE;
45 }
46
47 private String _escape;
48 private String _layoutWidth;
49 private String _enabledOnUserRole;
50 private String _visibleOnUserRole;
51
52 private String _displayValueOnly;
53 private String _displayValueOnlyStyle;
54 private String _displayValueOnlyStyleClass;
55
56 public void release() {
57 super.release();
58
59 _layoutWidth=null;
60 _escape=null;
61 _enabledOnUserRole=null;
62 _visibleOnUserRole=null;
63
64 _displayValueOnly=null;
65 _displayValueOnlyStyle=null;
66 _displayValueOnlyStyleClass=null;
67 }
68
69 protected void setProperties(UIComponent component)
70 {
71 super.setProperties(component);
72 setStringProperty(component, "layoutWidth", _layoutWidth);
73 setBooleanProperty(component, JSFAttr.ESCAPE_ATTR, _escape);
74 setStringProperty(component, UserRoleAware.ENABLED_ON_USER_ROLE_ATTR, _enabledOnUserRole);
75 setStringProperty(component, UserRoleAware.VISIBLE_ON_USER_ROLE_ATTR, _visibleOnUserRole);
76
77 setBooleanProperty(component, DisplayValueOnlyCapable.DISPLAY_VALUE_ONLY_ATTR, _displayValueOnly);
78 setStringProperty(component, DisplayValueOnlyCapable.DISPLAY_VALUE_ONLY_STYLE_ATTR, _displayValueOnlyStyle);
79 setStringProperty(component, DisplayValueOnlyCapable.DISPLAY_VALUE_ONLY_STYLE_CLASS_ATTR, _displayValueOnlyStyleClass);
80 }
81
82 public void setLayoutWidth(String layoutWidth)
83 {
84 _layoutWidth = layoutWidth;
85 }
86
87 public void setEscape(String escape)
88 {
89 _escape = escape;
90 }
91
92 public void setEnabledOnUserRole(String enabledOnUserRole)
93 {
94 _enabledOnUserRole = enabledOnUserRole;
95 }
96
97 public void setVisibleOnUserRole(String visibleOnUserRole)
98 {
99 _visibleOnUserRole = visibleOnUserRole;
100 }
101
102 public void setDisplayValueOnly(String displayValueOnly)
103 {
104 _displayValueOnly = displayValueOnly;
105 }
106
107 public void setDisplayValueOnlyStyle(String displayValueOnlyStyle)
108 {
109 _displayValueOnlyStyle = displayValueOnlyStyle;
110 }
111
112 public void setDisplayValueOnlyStyleClass(String displayValueOnlyStyleClass)
113 {
114 _displayValueOnlyStyleClass = displayValueOnlyStyleClass;
115 }
116 }