nextapp.echo2.app
Class LayoutDirection
java.lang.Object
nextapp.echo2.app.LayoutDirection
- All Implemented Interfaces:
- java.io.Serializable
public class LayoutDirection
- extends java.lang.Object
- implements java.io.Serializable
Describes the layout direction of text and content to provide support
for bidirectional localization.
- See Also:
- Serialized Form
|
Method Summary |
static LayoutDirection |
forLocale(java.util.Locale locale)
Returns the default LayoutDirection for the specified
Locale. |
boolean |
isLeftToRight()
Determines if the LayoutDirection is left-to-right. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LTR
public static final LayoutDirection LTR
RTL
public static final LayoutDirection RTL
forLocale
public static LayoutDirection forLocale(java.util.Locale locale)
- Returns the default
LayoutDirection for the specified
Locale.
- Parameters:
locale - the locale
- Returns:
- the default layout direction
isLeftToRight
public boolean isLeftToRight()
- Determines if the
LayoutDirection is left-to-right.
- Returns:
- true if the
LayoutDirection is left-to-right.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
- See Also:
Object.toString()