|
Oracle® Database Globalization Development Kit Java API Reference 11g Release 1 (11.1) Book Part Number B28299-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
public static class LocaleSource.Alignment
The LocaleSource.Alignment class represents the alignment of text elements.
To set the text alignment in HTML, specify the attribute align="left" or align="right" in HTML tags. The value is effective, even if you switch the writing direction in HTML from LTR to RTL. As a result, you 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 place of the left or right attributes. 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)Returns LocaleSource.Alignment object from the input string that is either START or END. |
int |
hashCode()Returns the hash value. |
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. If the mode is left-to-right writing direction, left is returned; otherwise right is returned.public static final LocaleSource.Alignment END
LocaleSource.Alignment object that represents the ending alignment. If the mode is left-to-right writing direction, right is returned; otherwise left is returned.| Method Detail |
|---|
public LocaleSource.Alignment getAlignment(String name)
LocaleSource.Alignment object from the input string that is either START or END.name - a String object representing the alignmentLocaleSource.Alignment object representing the text alignmentpublic String toString()
START or END representing a display writing direction.toString in class ObjectSTART for starting text alignment or END for ending text alignmentpublic int hashCode()
hashCode in class Object
|
Oracle® Database Globalization Development Kit Java API Reference 11g Release 1 (11.1) Book Part Number B28299-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||