1 16 package org.apache.myfaces.custom.stylesheet; 17 18 import javax.faces.component.UIComponent; 19 20 import org.apache.myfaces.taglib.html.HtmlOutputTextTagBase; 21 22 36 public class StylesheetTag extends HtmlOutputTextTagBase { 37 38 39 private String _path = null; 40 private String _enabledOnUserRole; 42 private String _visibleOnUserRole; 43 44 public String getComponentType() { 45 46 return Stylesheet.COMPONENT_TYPE; 47 48 } 49 50 public String getRendererType() { 51 52 return "org.apache.myfaces.Stylesheet"; 53 54 } 55 56 57 public void release() { 58 59 super.release(); 60 _path=null; 61 _enabledOnUserRole=null; 62 _visibleOnUserRole=null; 63 64 65 } 66 67 70 protected void setProperties(UIComponent component) { 71 72 super.setProperties(component); 73 setStringProperty(component, "path", _path); 74 75 } 76 77 79 public void setPath(String path) { 80 this._path = path; 81 } 82 public void setEnabledOnUserRole(String string) { 83 _enabledOnUserRole = string; 84 } 85 86 public void setVisibleOnUserRole(String string) { 87 _visibleOnUserRole = string; 88 } 89 } | Popular Tags |