1 28 package net.sf.jasperreports.engine.design; 29 30 import net.sf.jasperreports.engine.JRConstants; 31 import net.sf.jasperreports.engine.JRExpression; 32 import net.sf.jasperreports.engine.JRGroup; 33 import net.sf.jasperreports.engine.base.JRBaseVariable; 34 35 36 40 public class JRDesignVariable extends JRBaseVariable 41 { 42 43 44 47 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 48 49 52 public void setName(String name) 53 { 54 this.name = name; 55 } 56 57 60 public void setValueClass(Class clazz) 61 { 62 setValueClassName(clazz.getName()); 63 } 64 65 68 public void setValueClassName(String className) 69 { 70 valueClassName = className; 71 valueClass = null; 72 } 73 74 77 public void setIncrementerFactoryClass(Class clazz) 78 { 79 setIncrementerFactoryClassName(clazz.getName()); 80 } 81 82 85 public void setIncrementerFactoryClassName(String className) 86 { 87 incrementerFactoryClassName = className; 88 incrementerFactoryClass = null; 89 } 90 91 94 public void setResetType(byte resetType) 95 { 96 this.resetType = resetType; 97 } 98 99 102 public void setIncrementType(byte incrementType) 103 { 104 this.incrementType = incrementType; 105 } 106 107 110 public void setCalculation(byte calculation) 111 { 112 this.calculation = calculation; 113 } 114 115 118 public void setSystemDefined(boolean isSystemDefined) 119 { 120 this.isSystemDefined = isSystemDefined; 121 } 122 123 126 public void setExpression(JRExpression expression) 127 { 128 this.expression = expression; 129 } 130 131 134 public void setInitialValueExpression(JRExpression expression) 135 { 136 this.initialValueExpression = expression; 137 } 138 139 142 public void setResetGroup(JRGroup group) 143 { 144 this.resetGroup = group; 145 } 146 147 150 public void setIncrementGroup(JRGroup group) 151 { 152 this.incrementGroup = group; 153 } 154 155 } 156 | Popular Tags |