1 17 package org.alfresco.web.ui.common.tag; 18 19 import javax.faces.component.UICommand; 20 import javax.faces.component.UIComponent; 21 22 25 public class ActionLinkTag extends HtmlComponentTag 26 { 27 30 public String getComponentType() 31 { 32 return "org.alfresco.faces.ActionLink"; 33 } 34 35 38 public String getRendererType() 39 { 40 return "org.alfresco.faces.ActionLinkRenderer"; 41 } 42 43 46 protected void setProperties(UIComponent component) 47 { 48 super.setProperties(component); 49 50 setActionProperty((UICommand)component, this.action); 51 setActionListenerProperty((UICommand)component, this.actionListener); 52 setStringProperty(component, "image", this.image); 53 setBooleanProperty(component, "showLink", this.showLink); 54 setStringProperty(component, "verticalAlign", this.verticalAlign); 55 setIntProperty(component, "padding", this.padding); 56 setStringProperty(component, "href", this.href); 57 setStringProperty(component, "value", this.value); 58 setStringProperty(component, "target", this.target); 59 setStringProperty(component, "onclick", this.onclick); 60 61 } 63 64 67 public void release() 68 { 69 super.release(); 70 this.value = null; 71 this.action = null; 72 this.actionListener = null; 73 this.image = null; 74 this.showLink = null; 75 this.verticalAlign = null; 76 this.padding = null; 77 this.href = null; 78 this.target = null; 79 this.onclick = null; 80 } 81 82 87 public void setValue(String value) 88 { 89 this.value = value; 90 } 91 92 97 public void setAction(String action) 98 { 99 this.action = action; 100 } 101 102 107 public void setActionListener(String actionListener) 108 { 109 this.actionListener = actionListener; 110 } 111 112 117 public void setImage(String image) 118 { 119 this.image = image; 120 } 121 122 127 public void setShowLink(String showLink) 128 { 129 this.showLink = showLink; 130 } 131 132 137 public void setVerticalAlign(String verticalAlign) 138 { 139 this.verticalAlign = verticalAlign; 140 } 141 142 147 public void setPadding(String padding) 148 { 149 this.padding = padding; 150 } 151 152 157 public void setHref(String href) 158 { 159 this.href = href; 160 } 161 162 167 public void setTarget(String target) 168 { 169 this.target = target; 170 } 171 172 177 public void setOnclick(String onclick) 178 { 179 this.onclick = onclick; 180 } 181 182 183 private String target; 184 185 186 private String padding; 187 188 189 private String verticalAlign; 190 191 192 private String value; 193 194 195 private String action; 196 197 198 private String actionListener; 199 200 201 private String image; 202 203 204 private String showLink; 205 206 207 private String href; 208 209 210 private String onclick; 211 } 212 | Popular Tags |