1 16 package org.apache.myfaces.custom.rssticker; 17 18 import javax.faces.component.UIComponent; 19 20 import org.apache.myfaces.component.UserRoleAware; 21 import org.apache.myfaces.taglib.html.HtmlOutputTextTagBase; 22 23 44 public class HtmlRssTickerTag extends HtmlOutputTextTagBase{ 45 46 public String getComponentType() 47 { 48 return HtmlRssTicker.COMPONENT_TYPE; 49 } 50 51 public String getRendererType() 52 { 53 return HtmlRssTickerRenderer.RENDERER_TYPE; 54 } 55 56 private String _rssUrl = null; 58 59 private String _enabledOnUserRole; 61 private String _visibleOnUserRole; 62 63 public void release() { 64 super.release(); 65 66 _rssUrl=null; 67 _enabledOnUserRole=null; 68 _visibleOnUserRole=null; 69 70 } 71 72 75 protected void setProperties(UIComponent component) 76 { 77 super.setProperties(component); 78 79 setStringProperty(component, "rssUrl", _rssUrl); 80 setStringProperty(component, UserRoleAware.ENABLED_ON_USER_ROLE_ATTR, _enabledOnUserRole); 81 setStringProperty(component, UserRoleAware.VISIBLE_ON_USER_ROLE_ATTR, _visibleOnUserRole); 82 } 83 84 85 87 public void setRssUrl(String string) { 88 _rssUrl = string; 89 } 90 91 public void setEnabledOnUserRole(String string) { 92 _enabledOnUserRole = string; 93 } 94 95 public void setVisibleOnUserRole(String string) { 96 _visibleOnUserRole = string; 97 } 98 } 99 | Popular Tags |