1 17 package org.alfresco.web.ui.repo.tag.property; 18 19 import javax.faces.component.UIComponent; 20 21 import org.alfresco.web.ui.common.tag.BaseComponentTag; 22 23 26 public class PropertyTag extends BaseComponentTag 27 { 28 private String name; 29 private String displayLabel; 30 private String readOnly; 31 private String mode; 32 private String converter; 33 34 37 public String getRendererType() 38 { 39 return "org.alfresco.faces.PropertyRenderer"; 40 } 41 42 45 public String getComponentType() 46 { 47 return "org.alfresco.faces.Property"; 48 } 49 50 53 public void setDisplayLabel(String displayLabel) 54 { 55 this.displayLabel = displayLabel; 56 } 57 58 61 public void setName(String name) 62 { 63 this.name = name; 64 } 65 66 69 public void setReadOnly(String readOnly) 70 { 71 this.readOnly = readOnly; 72 } 73 74 77 public void setMode(String mode) 78 { 79 this.mode = mode; 80 } 81 82 85 public void setConverter(String converter) 86 { 87 this.converter = converter; 88 } 89 90 93 protected void setProperties(UIComponent component) 94 { 95 super.setProperties(component); 96 97 setStringProperty(component, "name", this.name); 98 setStringProperty(component, "displayLabel", this.displayLabel); 99 setStringProperty(component, "mode", this.mode); 100 setStringProperty(component, "converter", this.converter); 101 setBooleanProperty(component, "readOnly", this.readOnly); 102 } 103 104 107 public void release() 108 { 109 this.name = null; 110 this.displayLabel = null; 111 this.mode = null; 112 this.converter = null; 113 this.readOnly = null; 114 115 super.release(); 116 } 117 } 118 | Popular Tags |