]> source.dussan.org Git - poi.git/commitdiff
remove deprecated functions (since 2008)
authorJaven O'Neal <onealj@apache.org>
Fri, 4 Dec 2015 06:30:34 +0000 (06:30 +0000)
committerJaven O'Neal <onealj@apache.org>
Fri, 4 Dec 2015 06:30:34 +0000 (06:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1717899 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java
src/testcases/org/apache/poi/hssf/usermodel/TestHSSFCell.java

index b4e2d2bb4e592274d379e3d3bc4b2da5fb3eca99..a5e86b63094989774496fa5d7759188daa064696 100644 (file)
@@ -2539,4 +2539,25 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
     public int getColumnOutlineLevel(int columnIndex) {
         return _sheet.getColumnOutlineLevel(columnIndex);
     }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public CellAddress getActiveCell() {
+        int row = _sheet.getActiveCellRow();
+        int col = _sheet.getActiveCellCol();
+        return new CellAddress(row, col);
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public void setActiveCell(CellAddress addr) {
+        int row = addr.getRow();
+        short col = (short) addr.getColumn();
+        _sheet.setActiveCellRow(row);
+        _sheet.setActiveCellCol(col);
+    }
 }
index a512f52f165a58194751a07aaedabe3ae21e88ef..a5f9445844cf8c774b00763c5fef4a662096d3cc 100644 (file)
@@ -413,8 +413,6 @@ public final class TestHSSFCell extends BaseTestCell {
 
         // cover some deprecated methods and other smaller stuff...
         assertEquals(wb.getWorkbook(), cell.getBoundWorkbook());
-        cell.getCellNum();
-        cell.setCellNum((short)0);
 
         try {
             cell.getCachedFormulaResultType();