/** * Creates a cell for the server library; it is not appropriate for * client side use (the server may reject these cells). */ public static Cell createFullCell(int inRow, int inCol, String inInputValue, Number inCalculatedValue, String inValue) { return new Cell(inRow, inCol, inInputValue, inCalculatedValue, inValue); }
/** * Updates the cell's formula so it can be sent back to the server. * * Note that this destroys the cell's value! * * @param newInputValue the new input value (starts with '=' if a formula) */ public void changeInputValueLocal(String newInputValue) { setExtension(getCell().withNewInputValue(newInputValue)); }
/** * Declares the extensions used by the XML parser in the given profile object. */ public void declareExtensions(ExtensionProfile extProfile) { extProfile.declare(CellEntry.class, Cell.getDefaultDescription(false)); }
/** * Updates the cell's formula so it can be sent back to the server. * * Note that this destroys the cell's value! * * @param newInputValue the new input value (starts with '=' if a formula) */ public void changeInputValueLocal(String newInputValue) { setExtension(getCell().withNewInputValue(newInputValue)); }
/** * Declares the extensions used by the XML parser in the given profile object. */ public void declareExtensions(ExtensionProfile extProfile) { extProfile.declare(CellEntry.class, Cell.getDefaultDescription(false)); }
/** * Constructs a CellEntry that can be posted to overwrite an existing cell. * * @param row the row location of the cell * @param col the column location of the cell * @param newInputValue the string to write the cell with; if it starts with * an "=" sign it is a formula, otherwise it is a literal value */ public CellEntry(int row, int col, String newInputValue) { this(new Cell(row, col, newInputValue)); }
/** * Constructs a CellEntry that can be posted to overwrite an existing cell. * * @param row the row location of the cell * @param col the column location of the cell * @param newInputValue the string to write the cell with; if it starts with * an "=" sign it is a formula, otherwise it is a literal value */ public CellEntry(int row, int col, String newInputValue) { this(new Cell(row, col, newInputValue)); }
/** * Creates a new cell with a new input value, for the purpose of updating. * * The new cell cannot contain a calculation result value, because values * cannot be updated. * * @param newInputValue the new input value, starting with '=' for a formula, * otherwise just a plain string * @return a newly created "cell" object */ public Cell withNewInputValue(String newInputValue) { return new Cell(row, col, newInputValue, null, null); }
/** * Creates a cell for the server library; it is not appropriate for * client side use (the server may reject these cells). */ public static Cell createFullCell(int inRow, int inCol, String inInputValue, Number inCalculatedValue, String inValue) { return new Cell(inRow, inCol, inInputValue, inCalculatedValue, inValue); }
/** * Creates a new cell with a new input value, for the purpose of updating. * * The new cell cannot contain a calculation result value, because values * cannot be updated. * * @param newInputValue the new input value, starting with '=' for a formula, * otherwise just a plain string * @return a newly created "cell" object */ public Cell withNewInputValue(String newInputValue) { return new Cell(row, col, newInputValue, null, null); }