Oracle® Globalization Development Kit Java API Reference
10g Release 1(10.1)

B10971-01

oracle.i18n.servlet.localesource
Class LocaleSource.Alignment

java.lang.Object
  |
  +--oracle.i18n.servlet.localesource.LocaleSource.Alignment
All Implemented Interfaces:
Serializable
Enclosing class:
LocaleSource

public static class LocaleSource.Alignment
extends Object
implements Serializable

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.

See Also:
Serialized Form

Field Summary
static LocaleSource.Alignment END
          The LocaleSource.Alignment object that represents the ending alignment.
static LocaleSource.Alignment START
          The 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

START

public static final LocaleSource.Alignment START
The LocaleSource.Alignment object that represents the starting alignment. In the mode of Left to Right writing direction, left is returnd, otherwise right is returned.

END

public static final LocaleSource.Alignment END
The 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

getAlignment

public LocaleSource.Alignment getAlignment(String name)

toString

public String toString()
Returns "START" or "END" representing a display writing direction.
Overrides:
toString in class Object
Returns:
"START" for starting text alignment or "END" for ending text alignment

hashCode

public int hashCode()
Returns the hashValue
Overrides:
hashCode in class Object
Returns:
hash value

Oracle® Globalization Development Kit Java API Reference
10g Release 1(10.1)

B10971-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.