1 16 package org.apache.myfaces.taglib.html; 17 18 import org.apache.myfaces.renderkit.JSFAttr; 19 import org.apache.myfaces.renderkit.html.HTML; 20 21 import javax.faces.component.UIComponent; 22 23 24 42 public abstract class HtmlGraphicImageTagBase 43 extends HtmlComponentTagBase 44 { 45 47 49 51 53 private String _align; private String _alt; 56 private String _border; private String _height; 58 private String _hspace; private String _ismap; 60 private String _longdesc; 61 private String _onblur; 62 private String _onchange; 63 private String _onfocus; 64 private String _usemap; 65 private String _vspace; private String _width; 67 68 private String _url; 70 71 74 public void release() { 75 super.release(); 76 _align=null; 77 _alt=null; 78 _border=null; 79 _height=null; 80 _hspace=null; 81 _ismap=null; 82 _longdesc=null; 83 _onblur=null; 84 _onchange=null; 85 _onfocus=null; 86 _usemap=null; 87 _vspace=null; 88 _width=null; 89 } 90 91 protected void setProperties(UIComponent component) 92 { 93 super.setProperties(component); 94 95 setStringProperty(component, HTML.ALIGN_ATTR, _align); 96 setStringProperty(component, HTML.ALT_ATTR, _alt); 97 setStringProperty(component, HTML.BORDER_ATTR, _border); 98 setStringProperty(component, HTML.HEIGHT_ATTR, _height); 99 setStringProperty(component, HTML.HSPACE_ATTR, _hspace); 100 setBooleanProperty(component, HTML.ISMAP_ATTR, _ismap); 101 setStringProperty(component, HTML.LONGDESC_ATTR, _longdesc); 102 setStringProperty(component, HTML.ONBLUR_ATTR, _onblur); 103 setStringProperty(component, HTML.ONCHANGE_ATTR, _onchange); 104 setStringProperty(component, HTML.ONFOCUS_ATTR, _onfocus); 105 setStringProperty(component, HTML.USEMAP_ATTR, _usemap); 106 setStringProperty(component, HTML.VSPACE_ATTR, _vspace); 107 setStringProperty(component, HTML.WIDTH_ATTR, _width); 108 109 setStringProperty(component, JSFAttr.URL_ATTR, _url); 110 } 111 112 public void setAlign(String align) 113 { 114 _align = align; 115 } 116 117 public void setAlt(String alt) 118 { 119 _alt = alt; 120 } 121 122 public void setBorder(String border) 123 { 124 _border = border; 125 } 126 127 public void setHeight(String height) 128 { 129 _height = height; 130 } 131 132 public void setHspace(String hspace) 133 { 134 _hspace = hspace; 135 } 136 137 public void setIsmap(String ismap) 138 { 139 _ismap = ismap; 140 } 141 142 public void setLongdesc(String longdesc) 143 { 144 _longdesc = longdesc; 145 } 146 147 public void setOnblur(String onblur) 148 { 149 _onblur = onblur; 150 } 151 152 public void setOnchange(String onchange) 153 { 154 _onchange = onchange; 155 } 156 157 public void setOnfocus(String onfocus) 158 { 159 _onfocus = onfocus; 160 } 161 162 public void setUsemap(String usemap) 163 { 164 _usemap = usemap; 165 } 166 167 public void setVspace(String vspace) 168 { 169 _vspace = vspace; 170 } 171 172 public void setWidth(String width) 173 { 174 _width = width; 175 } 176 177 public void setUrl(String url) 178 { 179 _url = url; 180 } 181 } 182 | Popular Tags |