Package com.google.gwt.i18n.client
Class BidiUtils
- java.lang.Object
-
- com.google.gwt.i18n.client.BidiUtils
-
public class BidiUtils extends java.lang.ObjectA set of bidi-related utility methods.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDIR_PROPERTY_NAMEThe name of the element property which controls element directionality.
-
Constructor Summary
Constructors Constructor Description BidiUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HasDirection.DirectiongetDirectionOnElement(Element elem)Gets the directionality of an element.static voidsetDirectionOnElement(Element elem, HasDirection.Direction direction)Sets the directionality property for an element.
-
-
-
Field Detail
-
DIR_PROPERTY_NAME
public static final java.lang.String DIR_PROPERTY_NAME
The name of the element property which controls element directionality.- See Also:
- Constant Field Values
-
-
Method Detail
-
getDirectionOnElement
public static HasDirection.Direction getDirectionOnElement(Element elem)
Gets the directionality of an element.- Parameters:
elem- the element on which to check the directionality property- Returns:
RTLif the directionality is right-to-left,LTRif the directionality is left-to-right, orDEFAULTif the directionality is not explicitly set
-
setDirectionOnElement
public static void setDirectionOnElement(Element elem, HasDirection.Direction direction)
Sets the directionality property for an element.- Parameters:
elem- the element on which to set the propertydirection-RTLif the directionality should be set to right-to-left,LTRif the directionality should be set to left-to-rightDEFAULTif the directionality should be removed from the element
-
-