1 17 package org.alfresco.web.ui.repo.tag; 18 19 import javax.faces.component.UIComponent; 20 21 import org.alfresco.web.ui.common.tag.HtmlComponentTag; 22 23 26 public class LockIconTag extends HtmlComponentTag 27 { 28 31 public String getComponentType() 32 { 33 return "org.alfresco.faces.LockIcon"; 34 } 35 36 39 public String getRendererType() 40 { 41 return null; 42 } 43 44 47 protected void setProperties(UIComponent component) 48 { 49 super.setProperties(component); 50 setStringProperty(component, "lockImage", this.lockImage); 51 setStringProperty(component, "lockOwnerImage", this.lockOwnerImage); 52 setStringProperty(component, "align", this.align); 53 setIntProperty(component, "width", this.width); 54 setIntProperty(component, "height", this.height); 55 setStringProperty(component, "lockedOwnerTooltip", this.lockedOwnerTooltip); 56 setStringProperty(component, "lockedUserTooltip", this.lockedUserTooltip); 57 setStringBindingProperty(component, "value", this.value); 58 } 59 60 63 public void release() 64 { 65 super.release(); 66 this.lockImage = null; 67 this.lockOwnerImage = null; 68 this.align = null; 69 this.width = null; 70 this.height = null; 71 this.lockedOwnerTooltip = null; 72 this.lockedUserTooltip = null; 73 this.value = null; 74 } 75 76 81 public void setLockImage(String lockImage) 82 { 83 this.lockImage = lockImage; 84 } 85 86 91 public void setLockOwnerImage(String lockOwnerImage) 92 { 93 this.lockOwnerImage = lockOwnerImage; 94 } 95 96 101 public void setAlign(String align) 102 { 103 this.align = align; 104 } 105 106 111 public void setWidth(String width) 112 { 113 this.width = width; 114 } 115 116 121 public void setHeight(String height) 122 { 123 this.height = height; 124 } 125 126 131 public void setValue(String value) 132 { 133 this.value = value; 134 } 135 136 141 public void setLockedOwnerTooltip(String lockedOwnerTooltip) 142 { 143 this.lockedOwnerTooltip = lockedOwnerTooltip; 144 } 145 146 151 public void setLockedUserTooltip(String lockedUserTooltip) 152 { 153 this.lockedUserTooltip = lockedUserTooltip; 154 } 155 156 157 158 private String lockedOwnerTooltip; 159 160 161 private String lockedUserTooltip; 162 163 164 private String lockImage; 165 166 167 private String lockOwnerImage; 168 169 170 private String align; 171 172 173 private String width; 174 175 176 private String height; 177 178 179 private String value; 180 } 181 | Popular Tags |