1 28 package net.sf.jasperreports.crosstabs.base; 29 30 import java.io.Serializable ; 31 32 import net.sf.jasperreports.crosstabs.JRCellContents; 33 import net.sf.jasperreports.crosstabs.JRCrosstabCell; 34 import net.sf.jasperreports.engine.JRConstants; 35 import net.sf.jasperreports.engine.base.JRBaseObjectFactory; 36 37 43 public class JRBaseCrosstabCell implements JRCrosstabCell, Serializable 44 { 45 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 46 47 protected Integer width; 48 protected Integer height; 49 protected String rowTotalGroup; 50 protected String columnTotalGroup; 51 protected JRCellContents contents; 52 53 protected JRBaseCrosstabCell() 54 { 55 } 56 57 public JRBaseCrosstabCell(JRCrosstabCell crosstabCell, JRBaseObjectFactory factory) 58 { 59 factory.put(crosstabCell, this); 60 61 width = crosstabCell.getWidth(); 62 height = crosstabCell.getHeight(); 63 64 rowTotalGroup = crosstabCell.getRowTotalGroup(); 65 columnTotalGroup = crosstabCell.getColumnTotalGroup(); 66 67 contents = factory.getCell(crosstabCell.getContents()); 68 } 69 70 public String getRowTotalGroup() 71 { 72 return rowTotalGroup; 73 } 74 75 public String getColumnTotalGroup() 76 { 77 return columnTotalGroup; 78 } 79 80 public JRCellContents getContents() 81 { 82 return contents; 83 } 84 85 public Integer getHeight() 86 { 87 return height; 88 } 89 90 public Integer getWidth() 91 { 92 return width; 93 } 94 95 } 96 | Popular Tags |