1 19 20 package jxl.biff; 21 22 import jxl.CellType; 23 import jxl.CellFeatures; 24 import jxl.format.CellFormat; 25 import jxl.format.Alignment; 26 import jxl.write.WritableCell; 27 import jxl.write.VerticalAlignment; 28 import jxl.write.Border; 29 import jxl.write.BorderLineStyle; 30 import jxl.write.WritableCellFeatures; 31 32 36 public class EmptyCell implements WritableCell 37 { 38 41 private int row; 42 45 private int col; 46 47 53 public EmptyCell(int c, int r) 54 { 55 row = r; 56 col = c; 57 } 58 59 64 public int getRow() 65 { 66 return row; 67 } 68 69 74 public int getColumn() 75 { 76 return col; 77 } 78 79 84 public CellType getType() 85 { 86 return CellType.EMPTY; 87 } 88 89 94 public String getContents() 95 { 96 return ""; 97 } 98 99 104 public CellFormat getCellFormat() 105 { 106 return null; 107 } 108 109 113 public void setHidden(boolean flag) 114 { 115 } 116 117 121 public void setLocked(boolean flag) 122 { 123 } 124 125 129 public void setAlignment(Alignment align) 130 { 131 } 132 133 137 public void setVerticalAlignment(VerticalAlignment valign) 138 { 139 } 140 141 146 public void setBorder(Border border, BorderLineStyle line) 147 { 148 } 149 150 154 public void setCellFormat(CellFormat cf) 155 { 156 } 157 158 163 public void setCellFormat(jxl.CellFormat cf) 164 { 165 } 166 167 173 public boolean isHidden() 174 { 175 return false; 176 } 177 178 185 public WritableCell copyTo(int c, int r) 186 { 187 return new EmptyCell(c, r); 188 } 189 190 195 public CellFeatures getCellFeatures() 196 { 197 return null; 198 } 199 200 205 public WritableCellFeatures getWritableCellFeatures() 206 { 207 return null; 208 } 209 210 213 public void setCellFeatures(WritableCellFeatures wcf) 214 { 215 } 216 217 } 218 219 220 | Popular Tags |