1 16 package org.apache.myfaces.taglib.html; 17 18 import org.apache.myfaces.renderkit.JSFAttr; 19 20 import javax.faces.component.UIComponent; 21 22 39 public abstract class HtmlMessageTagBase 40 extends HtmlComponentTagBase 41 { 42 44 46 48 50 52 private String _for; 54 private String _showSummary; 55 private String _showDetail; 56 57 private String _infoClass; 59 private String _infoStyle; 60 private String _warnClass; 61 private String _warnStyle; 62 private String _errorClass; 63 private String _errorStyle; 64 private String _fatalClass; 65 private String _fatalStyle; 66 private String _tooltip; 67 68 public void release() { 69 super.release(); 70 _for=null; 71 _showSummary=null; 72 _showDetail=null; 73 _infoClass=null; 74 _infoStyle=null; 75 _warnClass=null; 76 _warnStyle=null; 77 _errorClass=null; 78 _errorStyle=null; 79 _fatalClass=null; 80 _fatalStyle=null; 81 _tooltip=null; 82 } 83 84 protected void setProperties(UIComponent component) 85 { 86 super.setProperties(component); 87 88 setStringProperty(component, JSFAttr.FOR_ATTR, _for); 89 setBooleanProperty(component, JSFAttr.SHOW_SUMMARY_ATTR, _showSummary); 90 setBooleanProperty(component, JSFAttr.SHOW_DETAIL_ATTR, _showDetail); 91 92 setStringProperty(component, JSFAttr.INFO_CLASS_ATTR, _infoClass); 93 setStringProperty(component, JSFAttr.INFO_STYLE_ATTR, _infoStyle); 94 setStringProperty(component, JSFAttr.WARN_CLASS_ATTR, _warnClass); 95 setStringProperty(component, JSFAttr.WARN_STYLE_ATTR, _warnStyle); 96 setStringProperty(component, JSFAttr.ERROR_CLASS_ATTR, _errorClass); 97 setStringProperty(component, JSFAttr.ERROR_STYLE_ATTR, _errorStyle); 98 setStringProperty(component, JSFAttr.FATAL_CLASS_ATTR, _fatalClass); 99 setStringProperty(component, JSFAttr.FATAL_STYLE_ATTR, _fatalStyle); 100 setBooleanProperty(component, JSFAttr.TOOLTIP_ATTR, _tooltip); 101 } 102 103 public void setFor(String aFor) 104 { 105 _for = aFor; 106 } 107 108 public void setShowSummary(String showSummary) 109 { 110 _showSummary = showSummary; 111 } 112 113 public void setShowDetail(String showDetail) 114 { 115 _showDetail = showDetail; 116 } 117 118 public void setErrorClass(String errorClass) 119 { 120 _errorClass = errorClass; 121 } 122 123 public void setErrorStyle(String errorStyle) 124 { 125 _errorStyle = errorStyle; 126 } 127 128 public void setFatalClass(String fatalClass) 129 { 130 _fatalClass = fatalClass; 131 } 132 133 public void setFatalStyle(String fatalStyle) 134 { 135 _fatalStyle = fatalStyle; 136 } 137 138 public void setInfoClass(String infoClass) 139 { 140 _infoClass = infoClass; 141 } 142 143 public void setInfoStyle(String infoStyle) 144 { 145 _infoStyle = infoStyle; 146 } 147 148 public void setWarnClass(String warnClass) 149 { 150 _warnClass = warnClass; 151 } 152 153 public void setWarnStyle(String warnStyle) 154 { 155 _warnStyle = warnStyle; 156 } 157 158 public void setTooltip(String tooltip) 159 { 160 _tooltip = tooltip; 161 } 162 } 163 | Popular Tags |