]> source.dussan.org Git - poi.git/commitdiff
renamed HSSFSheet.setArabic to HSSFSheet.setRightToLeft
authorYegor Kozlov <yegor@apache.org>
Fri, 13 Nov 2009 13:33:52 +0000 (13:33 +0000)
committerYegor Kozlov <yegor@apache.org>
Fri, 13 Nov 2009 13:33:52 +0000 (13:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@835846 13f79535-47bb-0310-9956-ffa450edef68

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

index d626a8234121ddedb7683c0fd76c3d6bcad68e5a..3402147f66b1a305b0375bb9147b20ae3a8ec654 100644 (file)
@@ -635,20 +635,21 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
     }
 
     /**
-     * Sets the arabic property for this sheet, will make it right to left.
-     * @param value true for arabic, false otherwise.
+     * Sets whether the worksheet is displayed from right to left instead of from left to right.
+     * 
+     * @param value true for right to left, false otherwise.
      */
-    public void setArabic(boolean value)
+    public void setRightToLeft(boolean value)
     {
            _sheet.getWindowTwo().setArabic(value);
     }
 
     /**
-     * Gets the arabic property for this sheet.
+     * Whether the text is displayed in right-to-left mode in the window
      *
-     * @return whther the arabic mode is set
+     * @return whether the text is displayed in right-to-left mode in the window
      */
-    public boolean isArabic()
+    public boolean isRightToLeft()
     {
            return _sheet.getWindowTwo().getArabic();
     }
index bdb15563b8e1cc78aaa6d535bc57749f2c591cde..81c4cf5ed02936b3f53355b6e4dc9f51aa9fe364 100644 (file)
@@ -810,9 +810,9 @@ public final class TestHSSFSheet extends BaseTestSheet {
         HSSFWorkbook wb = new HSSFWorkbook();
         HSSFSheet s = wb.createSheet();
 
-        assertEquals(false, s.isArabic());
-        s.setArabic(true);
-        assertEquals(true, s.isArabic());
+        assertEquals(false, s.isRightToLeft());
+        s.setRightToLeft(true);
+        assertEquals(true, s.isRightToLeft());
     }
 
 }