From a8da0c422e68a647808638b7a053b20accda1101 Mon Sep 17 00:00:00 2001 From: Yegor Kozlov Date: Fri, 13 Nov 2009 13:33:52 +0000 Subject: [PATCH] renamed HSSFSheet.setArabic to HSSFSheet.setRightToLeft git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@835846 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hssf/usermodel/HSSFSheet.java | 13 +++++++------ .../apache/poi/hssf/usermodel/TestHSSFSheet.java | 6 +++--- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java b/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java index d626a8234..3402147f6 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java @@ -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(); } diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java index bdb15563b..81c4cf5ed 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java @@ -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()); } }