1 16 package org.apache.myfaces.taglib.html.ext; 17 18 import org.apache.myfaces.component.UserRoleAware; 19 import org.apache.myfaces.component.html.ext.HtmlSelectManyCheckbox; 20 import org.apache.myfaces.taglib.html.HtmlSelectManyCheckboxTagBase; 21 22 import javax.faces.component.UIComponent; 23 24 25 48 public class HtmlSelectManyCheckboxTag 49 extends HtmlSelectManyCheckboxTagBase 50 { 51 public String getComponentType() 52 { 53 return HtmlSelectManyCheckbox.COMPONENT_TYPE; 54 } 55 56 public String getRendererType() 57 { 58 return "org.apache.myfaces.Checkbox"; 59 } 60 61 private String _enabledOnUserRole; 62 private String _visibleOnUserRole; 63 64 public void release() { 65 super.release(); 66 _enabledOnUserRole=null; 67 _visibleOnUserRole=null; 68 } 69 70 protected void setProperties(UIComponent component) 71 { 72 super.setProperties(component); 73 setStringProperty(component, UserRoleAware.ENABLED_ON_USER_ROLE_ATTR, _enabledOnUserRole); 74 setStringProperty(component, UserRoleAware.VISIBLE_ON_USER_ROLE_ATTR, _visibleOnUserRole); 75 } 76 77 public void setEnabledOnUserRole(String enabledOnUserRole) 78 { 79 _enabledOnUserRole = enabledOnUserRole; 80 } 81 82 public void setVisibleOnUserRole(String visibleOnUserRole) 83 { 84 _visibleOnUserRole = visibleOnUserRole; 85 } 86 87 } 88 | Popular Tags |