renamed HSSFSheet.setArabic to HSSFSheet.setRightToLeft

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@835846 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yegor Kozlov 2009-11-13 13:33:52 +00:00
parent e8e2b1ff49
commit a8da0c422e
2 changed files with 10 additions and 9 deletions

View 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. * Sets whether the worksheet is displayed from right to left instead of from left to right.
* @param value true for arabic, false otherwise. *
* @param value true for right to left, false otherwise.
*/ */
public void setArabic(boolean value) public void setRightToLeft(boolean value)
{ {
_sheet.getWindowTwo().setArabic(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(); return _sheet.getWindowTwo().getArabic();
} }

View File

@ -810,9 +810,9 @@ public final class TestHSSFSheet extends BaseTestSheet {
HSSFWorkbook wb = new HSSFWorkbook(); HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet s = wb.createSheet(); HSSFSheet s = wb.createSheet();
assertEquals(false, s.isArabic()); assertEquals(false, s.isRightToLeft());
s.setArabic(true); s.setRightToLeft(true);
assertEquals(true, s.isArabic()); assertEquals(true, s.isRightToLeft());
} }
} }