mirror of https://github.com/apache/poi.git
bug 59338: patch from Mark Murphy to deprecate HSSFCellUtil class in favor of CellUtil.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1739531 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
92c5186b5d
commit
3f17e3f604
|
@ -17,7 +17,6 @@
|
|||
|
||||
package org.apache.poi.hssf.util;
|
||||
|
||||
|
||||
import org.apache.poi.hssf.usermodel.HSSFCell;
|
||||
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
|
||||
import org.apache.poi.hssf.usermodel.HSSFFont;
|
||||
|
@ -33,6 +32,8 @@ import org.apache.poi.ss.util.CellUtil;
|
|||
* exists that meets your needs. If not, then it will create a new style. This is to prevent
|
||||
* creating too many styles. there is an upper limit in Excel on the number of styles that
|
||||
* can be supported.
|
||||
*
|
||||
* @deprecated 3.15 beta2. Removed in 3.17. Use {@link org.apache.poi.ss.util.CellUtil} instead.
|
||||
*/
|
||||
public final class HSSFCellUtil {
|
||||
|
||||
|
@ -46,6 +47,7 @@ public final class HSSFCellUtil {
|
|||
* @param rowIndex The 0 based row number
|
||||
* @param sheet The sheet that the row is part of.
|
||||
* @return The row indicated by the rowCounter
|
||||
* @deprecated 3.15 beta2. Removed in 3.17. Use {@link org.apache.poi.ss.util.CellUtil#getRow} instead.
|
||||
*/
|
||||
public static HSSFRow getRow(int rowIndex, HSSFSheet sheet) {
|
||||
return (HSSFRow) CellUtil.getRow(rowIndex, sheet);
|
||||
|
@ -58,6 +60,7 @@ public final class HSSFCellUtil {
|
|||
* @param row The row that the cell is part of
|
||||
* @param columnIndex The column index that the cell is in.
|
||||
* @return The cell indicated by the column.
|
||||
* @deprecated 3.15 beta2. Removed in 3.17. Use {@link org.apache.poi.ss.util.CellUtil#getCell} instead.
|
||||
*/
|
||||
public static HSSFCell getCell(HSSFRow row, int columnIndex) {
|
||||
return (HSSFCell) CellUtil.getCell(row, columnIndex);
|
||||
|
@ -71,6 +74,7 @@ public final class HSSFCellUtil {
|
|||
* @param value The value of the cell
|
||||
* @param style If the style is not null, then set
|
||||
* @return A new HSSFCell
|
||||
* @deprecated 3.15 beta2. Removed in 3.17. Use {@link org.apache.poi.ss.util.CellUtil#createCell} instead.
|
||||
*/
|
||||
public static HSSFCell createCell(HSSFRow row, int column, String value, HSSFCellStyle style) {
|
||||
return (HSSFCell) CellUtil.createCell(row, column, value, style);
|
||||
|
@ -83,6 +87,7 @@ public final class HSSFCellUtil {
|
|||
* @param column the column index to create the cell in
|
||||
* @param value The value of the cell
|
||||
* @return A new HSSFCell.
|
||||
* @deprecated 3.15 beta2. Removed in 3.17. Use {@link org.apache.poi.ss.util.CellUtil#createCell} instead.
|
||||
*/
|
||||
public static HSSFCell createCell(HSSFRow row, int column, String value) {
|
||||
return createCell( row, column, value, null );
|
||||
|
@ -94,6 +99,7 @@ public final class HSSFCellUtil {
|
|||
* @param cell the cell to set the alignment for
|
||||
* @param workbook The workbook that is being worked with.
|
||||
* @param align the column alignment to use.
|
||||
* @deprecated 3.15 beta2. Removed in 3.17. Use {@link org.apache.poi.ss.util.CellUtil#setAlignment} instead.
|
||||
*
|
||||
* @see HSSFCellStyle for alignment options
|
||||
*/
|
||||
|
@ -106,7 +112,8 @@ public final class HSSFCellUtil {
|
|||
*
|
||||
* @param cell the cell to set the alignment for
|
||||
* @param workbook The workbook that is being worked with.
|
||||
*@param font The HSSFFont that you want to set...
|
||||
* @param font The HSSFFont that you want to set.
|
||||
* @deprecated 3.15 beta2. Removed in 3.17. Use {@link org.apache.poi.ss.util.CellUtil#setFont} instead.
|
||||
*/
|
||||
public static void setFont(HSSFCell cell, HSSFWorkbook workbook, HSSFFont font) {
|
||||
CellUtil.setFont(cell, workbook, font);
|
||||
|
@ -120,11 +127,10 @@ public final class HSSFCellUtil {
|
|||
* Excel has an upper limit on the number of Styles that it supports.
|
||||
*
|
||||
* @param workbook The workbook that is being worked with.
|
||||
*@param propertyName The name of the property that is to be
|
||||
* changed.
|
||||
*@param propertyValue The value of the property that is to be
|
||||
* changed.
|
||||
* @param propertyName The name of the property that is to be changed.
|
||||
* @param propertyValue The value of the property that is to be changed.
|
||||
* @param cell The cell that needs it's style changes
|
||||
* @deprecated 3.15 beta2. Removed in 3.17. Use {@link org.apache.poi.ss.util.CellUtil#setCellStyleProperty} instead.
|
||||
*/
|
||||
public static void setCellStyleProperty(HSSFCell cell, HSSFWorkbook workbook,
|
||||
String propertyName, Object propertyValue) {
|
||||
|
@ -136,7 +142,9 @@ public final class HSSFCellUtil {
|
|||
* unicode version of it.
|
||||
*
|
||||
* @param cell The cell to check for unicode values
|
||||
*@return translated to unicode
|
||||
* @return translated to unicode (the cell is modified in-place and returned)
|
||||
*
|
||||
* @deprecated 3.15 beta2. Removed in 3.17. Use {@link org.apache.poi.ss.util.CellUtil#translateUnicodeValues} instead.
|
||||
*/
|
||||
public static HSSFCell translateUnicodeValues(HSSFCell cell){
|
||||
CellUtil.translateUnicodeValues(cell);
|
||||
|
|
Loading…
Reference in New Issue