public SheetCopier(Sheet f, WritableSheet t) { fromSheet = (SheetImpl) f; toSheet = (WritableSheetImpl) t; workbookSettings = toSheet.getWorkbook().getSettings(); chartOnly = false; }
/** * Overrides the method in the base class to add this to the Workbook's * list of maintained formulas * * @param fr the formatting records * @param ss the shared strings used within the workbook * @param s the sheet this is being added to */ void setCellDetails(FormattingRecords fr, SharedStrings ss, WritableSheetImpl s) { super.setCellDetails(fr, ss, s); s.getWorkbook().addRCIRCell(this); }
/** * Copies the specified sheet and places it at the index * specified by the parameter * * @param s the index of the sheet to copy * @param name the name of the new sheet * @param index the position of the new sheet */ public void copySheet(int s, String name, int index) { WritableSheet sheet = getSheet(s); WritableSheetImpl ws = (WritableSheetImpl) createSheet(name, index); ws.copy(sheet); }
/** * Used to manually alter the contents of the written out data. This * is used when cross-referencing cell records * * @param pos the position to alter * @param newdata the data to modify */ void setData(byte[] newdata, int pos) throws IOException { data.setData(newdata, pos); }
/** * Sets the date for this cell * * @param d the date */ public void setDate(Date d) { super.setDate(d); }
/** * Implementation of the deep copy function * * @param col the column which the new cell will occupy * @param row the row which the new cell will occupy * @return a copy of this cell, which can then be added to the sheet */ public WritableCell copyTo(int col, int row) { return new FormulaRecord(col, row, this); }
/** * Sets the date in this cell, taking the timezone into account * * @param d the date * @param a adjust for timezone */ protected void setDate(Date d, GMTDate a) { date = d; calculateValue(false); }
/** * Called by the cell features to remove a comment * * @param c the comment to remove */ public final void removeComment(Comment c) { sheet.removeDrawing(c); }
/** * Sets the text orientation for this format * * @param o the orientation * @exception WriteException */ public void setOrientation(Orientation o) throws WriteException { super.setOrientation(o); }
/** * Sets the specified border for this format * * @param b the border * @param ls the border line style * @exception jxl.write.WriteException */ public void setBorder(Border b, BorderLineStyle ls) throws WriteException { super.setBorder(b, ls, Colour.BLACK); }
/** * Sets the numerical value for this cell * * @param val the value */ public void setValue(double val) { super.setValue(val); }
/** * Sets the italic indicator for this font, if the font hasn't been * initialized * * @param italic the italic flag * @exception WriteException, if this font is already in use elsewhere */ public void setItalic(boolean italic) throws WriteException { super.setItalic(italic); }
/** * Interface method from WorkbookMethods - gets the specified * sheet within this workbook * * @param index the zero based index of the required sheet * @return The sheet specified by the index */ public Sheet getReadSheet(int index) { return getSheet(index); }
/** * Gets the header. Called when copying sheets * * @return the page header */ final HeaderRecord getHeader() { return sheetWriter.getHeader(); }
/** * Gets the footer. Called when copying sheets * * @return the page footer */ final FooterRecord getFooter() { return sheetWriter.getFooter(); } /**
/** * Overrides the method in the base class to add this to the Workbook's * list of maintained formulas * * @param fr the formatting records * @param ss the shared strings used within the workbook * @param s the sheet this is being added to */ void setCellDetails(FormattingRecords fr, SharedStrings ss, WritableSheetImpl s) { super.setCellDetails(fr, ss, s); s.getWorkbook().addRCIRCell(this); }
/** * Copies the specified sheet and places it at the index * specified by the parameter * * @param s the index of the sheet to copy * @param name the name of the new sheet * @param index the position of the new sheet */ public void copySheet(int s, String name, int index) { WritableSheet sheet = getSheet(s); WritableSheetImpl ws = (WritableSheetImpl) createSheet(name, index); ws.copy(sheet); }
public WritableSheetCopier(WritableSheet f, WritableSheet t) { fromSheet = (WritableSheetImpl) f; toSheet = (WritableSheetImpl) t; workbookSettings = toSheet.getWorkbook().getSettings(); chartOnly = false; }
public SheetCopier(Sheet f, WritableSheet t) { fromSheet = (SheetImpl) f; toSheet = (WritableSheetImpl) t; workbookSettings = toSheet.getWorkbook().getSettings(); chartOnly = false; }
public WritableSheetCopier(WritableSheet f, WritableSheet t) { fromSheet = (WritableSheetImpl) f; toSheet = (WritableSheetImpl) t; workbookSettings = toSheet.getWorkbook().getSettings(); chartOnly = false; }