|
Oracle Fusion Middleware Java API Reference for Oracle PDK Java 11g Release 1 (11.1.1) E10691-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.portal.utils.BiDiUtils
public class BiDiUtils
Utility class containing methods useful when rendering content that can be displayed in multiple languages that may be Bi-Directional, i.e. some should be rendered from left to right (LTR) and others from right to left (RTL).
Field Summary | |
---|---|
static java.lang.String |
ARABIC
Constant representing the language code for RTL language Arabic. |
static java.lang.String |
BIDI_DIR_ATTRIBUTE
|
static java.lang.String |
HEBREW
Constant representing the language code for RTL language Hebrew. |
static java.lang.String |
LEFT
|
static java.lang.String |
NO_DIR_ATTRIBUTE
|
static java.lang.String |
RIGHT
|
Constructor Summary | |
---|---|
BiDiUtils()
|
Method Summary | |
---|---|
static java.lang.String |
getAlignment(java.util.Locale l,
java.lang.String alignment)
Method to return a left or right alignment value depending on whether the portal is being viewed in a BiDi language or not. |
static java.lang.String |
getAlignment(java.lang.String language,
java.lang.String alignment)
Method to return a left or right alignment value depending on whether the portal is being viewed in a BiDi language or not. |
static java.lang.String |
getDirAttribute(java.util.Locale l)
Method to return the HTML attribute DIR=RTL when the language being used is a BiDi language. |
static java.lang.String |
getDirAttribute(java.lang.String language)
Method to return the HTML attribute DIR=RTL when the language being used is a BiDi language. |
static boolean |
isBiDi(java.util.Locale l)
Method to check whether a language is a BiDi language (i.e. rendered RTL). |
static boolean |
isBiDi(java.lang.String language)
Method to check whether a language is a BiDi language (i.e. rendered RTL). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RIGHT
public static final java.lang.String LEFT
public static final java.lang.String BIDI_DIR_ATTRIBUTE
public static final java.lang.String NO_DIR_ATTRIBUTE
public static final java.lang.String ARABIC
public static final java.lang.String HEBREW
Constructor Detail |
---|
public BiDiUtils()
Method Detail |
---|
public static boolean isBiDi(java.util.Locale l)
l
- The locale object containing the current language setting.
public static boolean isBiDi(java.lang.String language)
language
- A String representation of the current language setting.
public static java.lang.String getDirAttribute(java.util.Locale l)
l
- The locale object containing the current language setting.
public static java.lang.String getDirAttribute(java.lang.String language)
language
- A String representation of the current language setting.
public static java.lang.String getAlignment(java.util.Locale l, java.lang.String alignment)
l
- The locale object containing the current language
setting.alignment
- String to specify whether the alignment should be right
or left if HTML was viewed in a LTR language.
public static java.lang.String getAlignment(java.lang.String language, java.lang.String alignment)
l
- The locale object containing the current language
setting.alignment
- String to specify whether the alignment should be right
or left if HTML was viewed in a LTR language.
|
Oracle Fusion Middleware Java API Reference for Oracle PDK Java 11g Release 1 (11.1.1) E10691-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |