Package org.apache.poi.ss.excelant
Class ExcelAntSetDoubleCell
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.apache.poi.ss.excelant.ExcelAntSet
-
- org.apache.poi.ss.excelant.ExcelAntSetDoubleCell
-
- All Implemented Interfaces:
Cloneable
public class ExcelAntSetDoubleCell extends ExcelAntSet
Class for use in an Ant build script that sets the value of an Excel sheet cell using the cell id ('Sheet Name'!cellId).
-
-
Field Summary
-
Fields inherited from class org.apache.poi.ss.excelant.ExcelAntSet
cellStr, wbUtil
-
-
Constructor Summary
Constructors Constructor Description ExcelAntSetDoubleCell()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()doublegetCellValue()Return the cell value as a double.voidsetValue(double value)Set the value of the specified cell as the double passed in.-
Methods inherited from class org.apache.poi.ss.excelant.ExcelAntSet
getCell, setCell, setWorkbookUtil
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
setValue
public void setValue(double value)
Set the value of the specified cell as the double passed in.- Parameters:
value- The double-value that should be set when this task is executed.
-
getCellValue
public double getCellValue()
Return the cell value as a double.- Returns:
- The double-value of the cell as populated via setValue(), null if the value was not set yet.
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
-