1 17 package org.alfresco.web.ui.repo.tag.property; 18 19 import javax.faces.component.UIComponent; 20 import org.alfresco.web.ui.common.tag.BaseComponentTag; 21 22 28 public class PropertySheetGridTag extends BaseComponentTag 29 { 30 private String value; 31 private String var; 32 private String columns; 33 private String externalConfig; 34 private String configArea; 35 private String readOnly; 36 private String mode; 37 private String labelStyleClass; 38 private String cellpadding; 39 private String cellspacing; 40 41 44 public String getComponentType() 45 { 46 return "org.alfresco.faces.PropertySheet"; 47 } 48 49 52 public String getRendererType() 53 { 54 return "javax.faces.Grid"; 55 } 56 57 60 public void setValue(String value) 61 { 62 this.value = value; 63 } 64 65 68 public void setVar(String var) 69 { 70 this.var = var; 71 } 72 73 76 public void setColumns(String columns) 77 { 78 this.columns = columns; 79 } 80 81 84 public void setExternalConfig(String externalConfig) 85 { 86 this.externalConfig = externalConfig; 87 } 88 89 92 public void setConfigArea(String configArea) 93 { 94 this.configArea = configArea; 95 } 96 97 100 public void setMode(String mode) 101 { 102 this.mode = mode; 103 } 104 105 108 public void setReadOnly(String readOnly) 109 { 110 this.readOnly = readOnly; 111 } 112 113 116 public void setLabelStyleClass(String labelStyleClass) 117 { 118 this.labelStyleClass = labelStyleClass; 119 } 120 121 124 public void setCellpadding(String cellpadding) 125 { 126 this.cellpadding = cellpadding; 127 } 128 129 132 public void setCellspacing(String cellspacing) 133 { 134 this.cellspacing = cellspacing; 135 } 136 137 140 protected void setProperties(UIComponent component) 141 { 142 super.setProperties(component); 143 144 setStringProperty(component, "value", this.value); 145 setStringProperty(component, "mode", this.mode); 146 setStringProperty(component, "configArea", this.configArea); 147 setStringStaticProperty(component, "var", this.var); 148 setIntProperty(component, "columns", this.columns); 149 setStringStaticProperty(component, "labelStyleClass", this.labelStyleClass); 150 setBooleanProperty(component, "externalConfig", this.externalConfig); 151 setBooleanProperty(component, "readOnly", this.readOnly); 152 setStringStaticProperty(component, "cellpadding", this.cellpadding); 153 setStringStaticProperty(component, "cellspacing", this.cellspacing); 154 } 155 156 159 public void release() 160 { 161 this.value = null; 162 this.var = null; 163 this.columns = null; 164 this.externalConfig = null; 165 this.configArea = null; 166 this.readOnly = null; 167 this.mode = null; 168 this.labelStyleClass = null; 169 this.cellpadding = null; 170 this.cellspacing = null; 171 172 super.release(); 173 } 174 } 175 | Popular Tags |