1 28 package net.sf.jasperreports.engine.base; 29 30 import net.sf.jasperreports.engine.JRBand; 31 import net.sf.jasperreports.engine.JRConstants; 32 import net.sf.jasperreports.engine.JRExpression; 33 34 35 42 public class JRBaseBand extends JRBaseElementGroup implements JRBand 43 { 44 45 46 49 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 50 51 54 protected int height = 0; 55 protected boolean isSplitAllowed = true; 56 57 60 protected JRExpression printWhenExpression = null; 61 62 63 66 protected JRBaseBand(JRBand band, JRBaseObjectFactory factory) 67 { 68 super(band, factory); 69 70 height = band.getHeight(); 71 isSplitAllowed = band.isSplitAllowed(); 72 73 printWhenExpression = factory.getExpression(band.getPrintWhenExpression()); 74 } 75 76 77 80 public int getHeight() 81 { 82 return this.height; 83 } 84 85 88 public boolean isSplitAllowed() 89 { 90 return this.isSplitAllowed; 91 } 92 93 96 public void setSplitAllowed(boolean isSplitAllowed) 97 { 98 this.isSplitAllowed = isSplitAllowed; 99 } 100 101 104 public JRExpression getPrintWhenExpression() 105 { 106 return this.printWhenExpression; 107 } 108 109 110 } 111 | Popular Tags |