1 28 package net.sf.jasperreports.engine.fill; 29 30 import net.sf.jasperreports.engine.JRBand; 31 import net.sf.jasperreports.engine.JRExpression; 32 import net.sf.jasperreports.engine.JRGroup; 33 import net.sf.jasperreports.engine.JRVariable; 34 35 36 40 public class JRFillGroup implements JRGroup 41 { 42 43 44 47 protected JRGroup parent = null; 48 49 52 private JRBand groupHeader = null; 53 private JRBand groupFooter = null; 54 private JRVariable countVariable = null; 55 56 59 private boolean hasChanged = true; 60 private boolean isTopLevelChange = false; 61 private boolean isHeaderPrinted = false; 62 private boolean isFooterPrinted = true; 63 64 65 68 public JRFillGroup( 69 JRGroup group, 70 JRFillObjectFactory factory 71 ) 72 { 73 factory.put(group, this); 74 75 parent = group; 76 77 groupHeader = factory.getBand(group.getGroupHeader()); 78 groupFooter = factory.getBand(group.getGroupFooter()); 79 countVariable = factory.getVariable(group.getCountVariable()); 80 } 81 82 83 86 public String getName() 87 { 88 return parent.getName(); 89 } 90 91 94 public JRExpression getExpression() 95 { 96 return parent.getExpression(); 97 } 98 99 102 public boolean isStartNewColumn() 103 { 104 return parent.isStartNewColumn(); 105 } 106 107 110 public void setStartNewColumn(boolean isStart) 111 { 112 parent.setStartNewColumn(isStart); 113 } 114 115 118 public boolean isStartNewPage() 119 { 120 return parent.isStartNewPage(); 121 } 122 123 126 public void setStartNewPage(boolean isStart) 127 { 128 parent.setStartNewPage(isStart); 129 } 130 131 134 public boolean isResetPageNumber() 135 { 136 return parent.isResetPageNumber(); 137 } 138 139 142 public void setResetPageNumber(boolean isReset) 143 { 144 parent.setResetPageNumber(isReset); 145 } 146 147 150 public boolean isReprintHeaderOnEachPage() 151 { 152 return parent.isReprintHeaderOnEachPage(); 153 } 154 155 158 public void setReprintHeaderOnEachPage(boolean isReprint) 159 { 160 } 161 162 165 public int getMinHeightToStartNewPage() 166 { 167 return parent.getMinHeightToStartNewPage(); 168 } 169 170 173 public void setMinHeightToStartNewPage(int minHeight) 174 { 175 } 176 177 180 public JRBand getGroupHeader() 181 { 182 return groupHeader; 183 } 184 185 188 public JRBand getGroupFooter() 189 { 190 return groupFooter; 191 } 192 193 196 public JRVariable getCountVariable() 197 { 198 return countVariable; 199 } 200 201 204 public boolean hasChanged() 205 { 206 return hasChanged; 207 } 208 209 212 public void setHasChanged(boolean hasChanged) 213 { 214 this.hasChanged = hasChanged; 215 } 216 217 220 public boolean isTopLevelChange() 221 { 222 return isTopLevelChange; 223 } 224 225 228 public void setTopLevelChange(boolean isTopLevelChange) 229 { 230 this.isTopLevelChange = isTopLevelChange; 231 } 232 233 236 public boolean isHeaderPrinted() 237 { 238 return isHeaderPrinted; 239 } 240 241 244 public void setHeaderPrinted(boolean isHeaderPrinted) 245 { 246 this.isHeaderPrinted = isHeaderPrinted; 247 } 248 249 252 public boolean isFooterPrinted() 253 { 254 return isFooterPrinted; 255 } 256 257 260 public void setFooterPrinted(boolean isFooterPrinted) 261 { 262 this.isFooterPrinted = isFooterPrinted; 263 } 264 265 266 } 267 | Popular Tags |