1 16 package org.apache.myfaces.custom.div; 17 18 import javax.faces.component.UIComponent; 19 import org.apache.myfaces.taglib.html.HtmlOutputTextTagBase; 20 28 public class DivTag extends HtmlOutputTextTagBase { 29 private String _style = null; 30 private String _styleClass = null; 31 32 public String getComponentType() { 33 return Div.COMPONENT_TYPE; 34 } 35 36 public String getRendererType() { 37 return DivRenderer.RENDERER_TYPE; 38 } 39 40 public void release() { 41 super.release(); 42 this._style = null; 43 this._styleClass = null; 44 } 45 46 49 protected void setProperties(UIComponent component) { 50 super.setProperties(component); 51 setStringProperty(component, "style", _style); 52 setStringProperty(component, "styleClass", _styleClass); 53 } 54 55 public void setStyle(String style) { 57 this._style = style; 58 } 59 60 public void setStyleClass(String styleClass) { 61 this._styleClass = styleClass; 62 } 63 } | Popular Tags |