/** * Constructs this object from the raw data in biff 7 format. * Does nothing here * * @param t the raw data * @param settings the workbook settings * @param dummy dummy override to identify biff7 funcionality */ ExternalSheetRecord(Record t, WorkbookSettings settings, Biff7 dummy) { super(t); logger.warn("External sheet record for Biff 7 not supported"); }
/** * Sets the cell features during the reading process * * @param cf the cell features */ public void setCellFeatures(CellFeatures cf) { if (features != null) { logger.warn("current cell features not null - overwriting"); } features = cf; } }
/** * Sets the cell features during the reading process * * @param cf the cell features */ public void setCellFeatures(CellFeatures cf) { if (features != null) { logger.warn("current cell features not null - overwriting"); } features = cf; } }
/** * Constructs this object from the raw data in biff 7 format. * Does nothing here * * @param t the raw data * @param settings the workbook settings * @param dummy dummy override to identify biff7 funcionality */ ExternalSheetRecord(Record t, WorkbookSettings settings, Biff7 dummy) { super(t); logger.warn("External sheet record for Biff 7 not supported"); }
/** * Resets the initialize flag. This is called by the constructor of * WritableWorkbookImpl to reset the statically declared fonts */ public final void uninitialize() { // As the default formats are cloned internally, the initialized // flag should never be anything other than false if (initialized == true) { logger.warn("A default format has been initialized"); } initialized = false; }
/** * Sets the cell features during the reading process * * @param cf the cell features */ public void setCellFeatures(CellFeatures cf) { if (features != null) { logger.warn("current cell features not null - overwriting"); } features = cf; } }
/** * Resets the initialize flag. This is called by the constructor of * WritableWorkbookImpl to reset the statically declared fonts */ public final void uninitialize() { // As the default formats are cloned internally, the initialized // flag should never be anything other than false if (initialized == true) { logger.warn("A default format has been initialized"); } initialized = false; }
/** * Sets the cell features during the reading process * * @param cf the cell features */ public void setCellFeatures(CellFeatures cf) { if (features != null) { logger.warn("current cell features not null - overwriting"); } features = cf; } }
/** * Constructor for a double value when reading from a string * * @param s the string representation of this token */ public DoubleValue(String s) { try { value = Double.parseDouble(s); } catch (NumberFormatException e) { logger.warn(e, e); value = 0; } }
/** * Constructor * * @param type the biff code * @param d the data */ public ArbitraryRecord(int type, byte[] d) { super(Type.createType(type)); data = d; logger.warn("ArbitraryRecord of type " + type + " created"); }
/** * Constructor * * @param type the biff code * @param d the data */ public ArbitraryRecord(int type, byte[] d) { super(Type.createType(type)); data = d; logger.warn("ArbitraryRecord of type " + type + " created"); }
/** * Gets the row number of the cell reference */ public static int getRow(String s) { try { return (Integer.parseInt(s.substring(getNumberIndex(s))) - 1); } catch (NumberFormatException e) { logger.warn(e, e); return 0xffff; } }
/** * Gets the row number of the cell reference */ public static int getRow(String s) { try { return (Integer.parseInt(s.substring(getNumberIndex(s))) - 1); } catch (NumberFormatException e) { logger.warn(e, e); return 0xffff; } }
/** * Gets the data for writing * * @return the data */ byte[] getData() { logger.warn("escher atom getData called on object of type " + getClass().getName() + " code " + Integer.toString(getType().getValue(), 16)); return null; } }
/** * Gets the data for writing * * @return the data */ byte[] getData() { logger.warn("escher atom getData called on object of type " + getClass().getName() + " code " + Integer.toString(getType().getValue(), 16)); return null; } }
public String getValidationFormula() { try { if (dvParser == null) { initialize(); } return dvParser.getValidationFormula(); } catch (FormulaException e) { logger.warn("Cannot read drop down range " + e.getMessage()); return ""; } } }
/** * Sets the data validation based upon a named range */ public void setDataValidationRange(String namedRange) { if (dataValidation && getDVParser().extendedCellsValidation()) { logger.warn("Cannot set data validation on " + CellReferenceHelper.getCellReference(writableCell) + " as it is part of a shared data validation"); return; } clearValidationSettings(); dvParser = new DVParser(namedRange); dropDown = true; dataValidation = true; }
public void setNumberValidation(double val1, double val2, ValidationCondition c) { if (dataValidation && getDVParser().extendedCellsValidation()) { logger.warn("Cannot set data validation on " + CellReferenceHelper.getCellReference(writableCell) + " as it is part of a shared data validation"); return; } clearValidationSettings(); dvParser = new DVParser(val1, val2, c.getCondition()); dropDown = false; dataValidation = true; }
/** * Sets the data validation based upon a numerical condition */ public void setNumberValidation(double val, ValidationCondition c) { if (dataValidation && getDVParser().extendedCellsValidation()) { logger.warn("Cannot set data validation on " + CellReferenceHelper.getCellReference(writableCell) + " as it is part of a shared data validation"); return; } clearValidationSettings(); dvParser = new DVParser(val, Double.NaN, c.getCondition()); dropDown = false; dataValidation = true; }
public void setNumberValidation(double val1, double val2, ValidationCondition c) { if (dataValidation && getDVParser().extendedCellsValidation()) { logger.warn("Cannot set data validation on " + CellReferenceHelper.getCellReference(writableCell) + " as it is part of a shared data validation"); return; } clearValidationSettings(); dvParser = new DVParser(val1, val2, c.getCondition()); dropDown = false; dataValidation = true; }