|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.xsp.util.DirLangUtil
public class DirLangUtil
Utility for checking RTL/LTR settings
Field Summary | |
---|---|
static java.lang.String |
DIR
Corresponds to the dir attribute |
static java.lang.String |
LANG
Corresponds to the lang attribute |
protected static java.lang.String |
LANG_ARABIC
Corresponds to the ar language code |
protected static java.lang.String |
LANG_CZECH
Corresponds to the cs language code |
protected static java.lang.String |
LANG_HEBREW
Corresponds to the he language code |
protected static java.lang.String |
LANG_HEBREW_ALT
Corresponds to the iw language code |
protected static java.lang.String |
LANG_PERSIAN
Corresponds to the |
protected static java.lang.String |
LANG_POLISH
Corresponds to the pl language code |
protected static java.lang.String |
LANG_URDU
Corresponds to the ur language code |
static java.lang.String |
RTL
Corresponds to the rtl attribute |
Constructor Summary | |
---|---|
DirLangUtil()
|
Method Summary | |
---|---|
static boolean |
isCzechPolish(javax.faces.context.FacesContext context)
Utility method for checking is the current locale czech or polish |
static boolean |
isLanguageRtl(java.lang.String lang)
Utility method for checking if a language uses Right to Left |
static boolean |
isRTL(javax.faces.component.UIComponent component)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DIR
dir
attribute
public static final java.lang.String RTL
rtl
attribute
public static final java.lang.String LANG
lang
attribute
protected static final java.lang.String LANG_ARABIC
ar
language code
protected static final java.lang.String LANG_HEBREW
he
language code
protected static final java.lang.String LANG_HEBREW_ALT
iw
language code
protected static final java.lang.String LANG_URDU
ur
language code
protected static final java.lang.String LANG_PERSIAN
protected static final java.lang.String LANG_CZECH
cs
language code
protected static final java.lang.String LANG_POLISH
pl
language code
Constructor Detail |
---|
public DirLangUtil()
Method Detail |
---|
public static boolean isRTL(javax.faces.component.UIComponent component)
component
- Check the current component for a dir
or a lang
property. If setting found, use that.
If no setting found, go to the parent and try again.
If the current component is UIViewRootEx, then try its locale setting for language.
public static boolean isCzechPolish(javax.faces.context.FacesContext context)
{@link
- javax.faces.context.FacesContext}
public static boolean isLanguageRtl(java.lang.String lang)
lang
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |