poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ye...@apache.org
Subject svn commit: r835846 - in /poi/trunk/src: java/org/apache/poi/hssf/usermodel/HSSFSheet.java testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java
Date Fri, 13 Nov 2009 13:33:54 GMT
Author: yegor
Date: Fri Nov 13 13:33:52 2009
New Revision: 835846

URL: http://svn.apache.org/viewvc?rev=835846&view=rev
Log:
renamed HSSFSheet.setArabic to HSSFSheet.setRightToLeft

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

Modified: poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java?rev=835846&r1=835845&r2=835846&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java (original)
+++ poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java Fri Nov 13 13:33:52 2009
@@ -635,20 +635,21 @@
     }
 
     /**
-     * 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();
     }

Modified: poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java?rev=835846&r1=835845&r2=835846&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java Fri Nov 13 13:33:52
2009
@@ -810,9 +810,9 @@
         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());
     }
 
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message