|
Oracle® Globalization Development Kit Java API Reference 10g Release 1(10.1) B10971-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--oracle.i18n.servlet.localesource.LocaleSource.Alignment
LocaleSource.Alignment class represents the alignment of text element.
To specify the text alignment in the HTML, you specify the attribute align="left" or align="right" in tags. The value would be effective, even if you switch the writing direction in HTML from LTR to RTL. As a result, you will see text elements in opposite alignment in RTL mode. To avoid this issue, use this parameter value class to specify either LocaleSource.Alignment.START or LocaleSource.Alignment.END in replacement of left or right attirbutes. GDK automatically detects the writing direction to return the appropriate alignment value.
Note this class is a constant value class, so this will not determine the alignment.
| Field Summary | |
static LocaleSource.Alignment |
ENDThe LocaleSource.Alignment object that represents the ending alignment. |
static LocaleSource.Alignment |
STARTThe LocaleSource.Alignment object that represents the starting alignment. |
| Method Summary | |
LocaleSource.Alignment |
getAlignment(String name) |
int |
hashCode()Returns the hashValue |
String |
toString()Returns "START" or "END" representing a display writing direction. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final LocaleSource.Alignment START
LocaleSource.Alignment object that represents the starting alignment. In the mode of Left to Right writing direction, left is returnd, otherwise right is returned.public static final LocaleSource.Alignment END
LocaleSource.Alignment object that represents the ending alignment. In the mode of Left to Right writing direction, right is returnd, otherwise left is returned.| Method Detail |
public LocaleSource.Alignment getAlignment(String name)
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Object
|
Oracle® Globalization Development Kit Java API Reference 10g Release 1(10.1) B10971-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||