1 28 package net.sf.jasperreports.engine; 29 30 31 38 public class JREmptyDataSource implements JRRewindableDataSource 39 { 40 41 42 45 private int count = 1; 46 private int index = 0; 47 48 49 52 public JREmptyDataSource() 53 { 54 } 55 56 57 60 public JREmptyDataSource(int count) 61 { 62 this.count = count; 63 } 64 65 66 69 public boolean next() 70 { 71 return (index++ < count); 72 } 73 74 75 78 public Object getFieldValue(JRField field) 79 { 80 return null; 81 } 82 83 84 87 public void moveFirst() 88 { 89 this.index = 0; 90 } 91 92 93 } 94 | Popular Tags |