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()); } }