1 19 20 package jxl.write; 21 22 import jxl.Sheet; 23 import jxl.Range; 24 import jxl.CellView; 25 import jxl.format.CellFormat; 26 import jxl.format.PageOrientation; 27 import jxl.format.PaperSize; 28 29 import jxl.write.biff.RowsExceededException; 30 31 35 public interface WritableSheet extends Sheet 36 { 37 49 public void addCell(WritableCell cell) 50 throws WriteException, RowsExceededException; 51 56 public void setName(String name); 57 63 public void setHidden(boolean hidden); 64 70 public void setProtected(boolean prot); 71 72 81 public void setColumnView(int col, int width); 82 83 93 public void setColumnView(int col, int width, CellFormat format); 94 95 101 public void setColumnView(int col, CellView view); 102 103 110 public void setRowView(int row, int height) 111 throws RowsExceededException; 112 113 120 public void setRowView(int row, boolean collapsed) 121 throws RowsExceededException; 122 123 131 public void setRowView(int row, int height, 132 boolean collapsed) 133 throws RowsExceededException; 134 135 143 public WritableCell getWritableCell(int column, int row); 144 145 151 public WritableHyperlink[] getWritableHyperlinks(); 152 153 159 public void insertRow(int row); 160 161 167 public void insertColumn(int col); 168 169 175 public void removeColumn(int col); 176 177 183 public void removeRow(int row); 184 185 197 public Range mergeCells(int col1, int row1, int col2, int row2) 198 throws WriteException, RowsExceededException; 199 200 206 public void unmergeCells(Range r); 207 208 219 public void addHyperlink(WritableHyperlink h) 220 throws WriteException, RowsExceededException;; 221 222 232 public void removeHyperlink(WritableHyperlink h); 233 234 248 public void removeHyperlink(WritableHyperlink h, boolean preserveLabel); 249 250 258 public void setHeader(String l, String c, String r); 259 260 268 public void setFooter(String l, String c, String r); 269 270 275 public void setPageSetup(PageOrientation p); 276 277 284 public void setPageSetup(PageOrientation p, double hm, double fm); 285 286 294 public void setPageSetup(PageOrientation p, PaperSize ps, 295 double hm, double fm); 296 297 302 public void addRowPageBreak(int row); 303 304 309 public void addImage(WritableImage image); 310 311 316 public int getNumberOfImages(); 317 318 324 public WritableImage getImage(int i); 325 326 333 public void removeImage(WritableImage wi); 334 } 335 336 337 | Popular Tags |