public class BidiUtils extends java.lang.Object
|Modifier and Type||Field and Description|
The name of the element property which controls element directionality.
|Constructor and Description|
|Modifier and Type||Method and Description|
Gets the directionality of an element.
Sets the directionality property for an element.
public static final java.lang.String DIR_PROPERTY_NAME
public static HasDirection.Direction getDirectionOnElement(Element elem)
elem- the element on which to check the directionality property
RTLif the directionality is right-to-left,
LTRif the directionality is left-to-right, or
DEFAULTif the directionality is not explicitly set
public static void setDirectionOnElement(Element elem, HasDirection.Direction direction)
elem- the element on which to set the property
RTLif the directionality should be set to right-to-left,
LTRif the directionality should be set to left-to-right
DEFAULTif the directionality should be removed from the element