GWT 2.7.0

## Uses of Class
com.google.gwt.i18n.client.HasDirection.Direction

Packages that use HasDirection.Direction
com.google.gwt.i18n.client | Internationalization support for GWT applications.
com.google.gwt.i18n.shared | This package contains i18n classes and interfaces shared between client and server.
com.google.gwt.user.client.ui | Widgets, Panels, and other user-interface classes.

Uses of HasDirection.Direction in com.google.gwt.i18n.client

Methods in com.google.gwt.i18n.client that return HasDirection.Direction
`HasDirection.Direction` | `HasDirection.getDirection()` Gets the directionality of the widget.
`static HasDirection.Direction` | `BidiUtils.getDirectionOnElement(Element elem)` Gets the directionality of an element.
`static HasDirection.Direction` | `HasDirection.Direction.valueOf(java.lang.String name)` Returns the enum constant of this type with the specified name.
`static HasDirection.Direction[]` | `HasDirection.Direction.values()` Returns an array containing the constants of this enum type, in the order they are declared.

Methods in com.google.gwt.i18n.client with parameters of type HasDirection.Direction
`void` | `HasDirection.setDirection(HasDirection.Direction direction)` Sets the directionality for a widget.
`static void` | `BidiUtils.setDirectionOnElement(Element elem, HasDirection.Direction direction)` Sets the directionality property for an element.

Uses of HasDirection.Direction in com.google.gwt.i18n.shared

Methods in com.google.gwt.i18n.shared that return HasDirection.Direction
`HasDirection.Direction` | `SafeHtmlBidiFormatter.estimateDirection(SafeHtml html)`
`HasDirection.Direction` | `DirectionEstimator.estimateDirection(SafeHtml html)` Estimates the direction of a SafeHtml.
`HasDirection.Direction` | `WordCountDirectionEstimator.estimateDirection(java.lang.String str)` Estimates the direction of a given string using the "word count" heuristic, as defined at `BidiUtils.estimateDirection(java.lang.String)`.
`HasDirection.Direction` | `FirstStrongDirectionEstimator.estimateDirection(java.lang.String str)` Estimates the direction of a given string using the "first strong" heuristic: The return value is determined by the first character in the string with strong directionality.
`abstract HasDirection.Direction` | `DirectionEstimator.estimateDirection(java.lang.String str)` Estimates the direction of a plain-text string.
`HasDirection.Direction` | `BidiUtils.estimateDirection(java.lang.String str)` Like `BidiUtils.estimateDirection(String, boolean)`, but assumes `str` is not HTML / HTML-escaped.
`HasDirection.Direction` | `BidiFormatterBase.estimateDirection(java.lang.String str)` Like `BidiFormatterBase.estimateDirection(String, boolean)`, but assumes `isHtml` is false.
`HasDirection.Direction` | `AnyRtlDirectionEstimator.estimateDirection(java.lang.String str)` Estimates the direction of a given string using the "any RTL" heuristic: the return value is RTL if the string contains at least one RTL character.
`HasDirection.Direction` | `DirectionEstimator.estimateDirection(java.lang.String str, boolean isHtml)` Estimates the direction of a string.
`HasDirection.Direction` | `BidiUtils.estimateDirection(java.lang.String str, boolean isHtml)` Estimates the directionality of a string based on relative word counts.
`HasDirection.Direction` | `BidiFormatterBase.estimateDirection(java.lang.String str, boolean isHtml)` Estimates the direction of a string using the best known general-purpose method, i.e.
`HasDirection.Direction` | `BidiFormatterBase.getContextDir()` Returns the context direction.

Methods in com.google.gwt.i18n.shared with parameters of type HasDirection.Direction
`SafeHtmlBidiFormatter` | `SafeHtmlBidiFormatter.Factory.createInstance(HasDirection.Direction contextDir, boolean alwaysSpan)`
`abstract T` | `BidiFormatterBase.Factory.createInstance(HasDirection.Direction contextDir, boolean alwaysSpan)`
`BidiFormatter` | `BidiFormatter.Factory.createInstance(HasDirection.Direction contextDir, boolean alwaysSpan)`
`static SafeHtmlBidiFormatter` | `SafeHtmlBidiFormatter.getInstance(HasDirection.Direction contextDir)` Factory for creating an instance of SafeHtmlBidiFormatter given the context direction.
`static BidiFormatter` | `BidiFormatter.getInstance(HasDirection.Direction contextDir)` Factory for creating an instance of BidiFormatter given the context direction.
`static SafeHtmlBidiFormatter` | `SafeHtmlBidiFormatter.getInstance(HasDirection.Direction contextDir, boolean alwaysSpan)` Factory for creating an instance of SafeHtmlBidiFormatter given the context direction and the desired span wrapping behavior (see below).
`T` | `BidiFormatterBase.Factory.getInstance(HasDirection.Direction contextDir, boolean alwaysSpan)`
`static BidiFormatter` | `BidiFormatter.getInstance(HasDirection.Direction contextDir, boolean alwaysSpan)` Factory for creating an instance of BidiFormatter given the context direction and the desired span wrapping behavior (see below).
`SafeHtml` | `SafeHtmlBidiFormatter.knownDirAttr(HasDirection.Direction dir)`
`java.lang.String` | `BidiFormatter.knownDirAttr(HasDirection.Direction dir)` Returns "dir=ltr" or "dir=rtl", depending on the given direction, if it is not the same as the context direction.
`protected java.lang.String` | `BidiFormatterBase.knownDirAttrBase(HasDirection.Direction dir)`
`SafeHtml` | `SafeHtmlBidiFormatter.spanWrapWithKnownDir(HasDirection.Direction dir, SafeHtml html)`
`SafeHtml` | `SafeHtmlBidiFormatter.spanWrapWithKnownDir(HasDirection.Direction dir, SafeHtml html, boolean dirReset)`
`SafeHtml` | `SafeHtmlBidiFormatter.spanWrapWithKnownDir(HasDirection.Direction dir, java.lang.String str)`
`java.lang.String` | `BidiFormatter.spanWrapWithKnownDir(HasDirection.Direction dir, java.lang.String str)` Like `BidiFormatter.spanWrapWithKnownDir(com.google.gwt.i18n.client.HasDirection.Direction, String, boolean, boolean)`, but assumes `isHtml` is false and `dirReset` is true.
`SafeHtml` | `SafeHtmlBidiFormatter.spanWrapWithKnownDir(HasDirection.Direction dir, java.lang.String str, boolean dirReset)`
`java.lang.String` | `BidiFormatter.spanWrapWithKnownDir(HasDirection.Direction dir, java.lang.String str, boolean isHtml)` Like `BidiFormatter.spanWrapWithKnownDir(com.google.gwt.i18n.client.HasDirection.Direction, String, boolean, boolean)`, but assumes `dirReset` is true.
`java.lang.String` | `BidiFormatter.spanWrapWithKnownDir(HasDirection.Direction dir, java.lang.String str, boolean isHtml, boolean dirReset)` Formats a string of given direction for use in HTML output of the context direction, so an opposite-direction string is neither garbled nor garbles what follows it.
`protected java.lang.String` | `BidiFormatterBase.spanWrapWithKnownDirBase(HasDirection.Direction dir, java.lang.String str, boolean isHtml, boolean dirReset)`
`SafeHtml` | `SafeHtmlBidiFormatter.unicodeWrapWithKnownDir(HasDirection.Direction dir, SafeHtml html)`
`SafeHtml` | `SafeHtmlBidiFormatter.unicodeWrapWithKnownDir(HasDirection.Direction dir, SafeHtml html, boolean dirReset)`
`SafeHtml` | `SafeHtmlBidiFormatter.unicodeWrapWithKnownDir(HasDirection.Direction dir, java.lang.String str)`
`java.lang.String` | `BidiFormatter.unicodeWrapWithKnownDir(HasDirection.Direction dir, java.lang.String str)` Like `BidiFormatter.unicodeWrapWithKnownDir(com.google.gwt.i18n.client.HasDirection.Direction, String, boolean, boolean)`, but assumes `isHtml` is false and `dirReset` is true.
`SafeHtml` | `SafeHtmlBidiFormatter.unicodeWrapWithKnownDir(HasDirection.Direction dir, java.lang.String str, boolean dirReset)`
`java.lang.String` | `BidiFormatter.unicodeWrapWithKnownDir(HasDirection.Direction dir, java.lang.String str, boolean isHtml)` Like `BidiFormatter.unicodeWrapWithKnownDir(com.google.gwt.i18n.client.HasDirection.Direction, String, boolean, boolean)`, but assumes `dirReset` is true.
`java.lang.String` | `BidiFormatter.unicodeWrapWithKnownDir(HasDirection.Direction dir, java.lang.String str, boolean isHtml, boolean dirReset)` Formats a string of given direction for use in plain-text output of the context direction, so an opposite-direction string is neither garbled nor garbles what follows it.
`protected java.lang.String` | `BidiFormatterBase.unicodeWrapWithKnownDirBase(HasDirection.Direction dir, java.lang.String str, boolean isHtml, boolean dirReset)`

Constructors in com.google.gwt.i18n.shared with parameters of type HasDirection.Direction
`BidiFormatterBase(HasDirection.Direction contextDir, boolean alwaysSpan)`

Uses of HasDirection.Direction in com.google.gwt.user.client.ui

Methods in com.google.gwt.user.client.ui that return HasDirection.Direction
`HasDirection.Direction` | `ValueBoxBase.getDirection()`
`HasDirection.Direction` | `Label.getDirection()` Deprecated. Use `Label.getTextDirection()` instead
`HasDirection.Direction` | `Anchor.getDirection()`
`HasDirection.Direction` | `Label.getTextDirection()`
`HasDirection.Direction` | `Hyperlink.getTextDirection()`
`HasDirection.Direction` | `HasDirectionalText.getTextDirection()` Gets the direction of this object's text.
`HasDirection.Direction` | `DirectionalTextHelper.getTextDirection()`
`HasDirection.Direction` | `CheckBox.getTextDirection()`
`HasDirection.Direction` | `Anchor.getTextDirection()`

Methods in com.google.gwt.user.client.ui with parameters of type HasDirection.Direction
`void` | `ListBox.addItem(java.lang.String item, HasDirection.Direction dir)` Adds an item to the list box, specifying its direction.
`void` | `ListBox.addItem(java.lang.String item, HasDirection.Direction dir, java.lang.String value)` Adds an item to the list box, specifying its direction and an initial value for the item.
`static HasHorizontalAlignment.HorizontalAlignmentConstant` | `HasHorizontalAlignment.HorizontalAlignmentConstant.endOf(HasDirection.Direction direction)`
`void` | `ListBox.insertItem(java.lang.String item, HasDirection.Direction dir, int index)` Inserts an item into the list box, specifying its direction.
`void` | `ListBox.insertItem(java.lang.String item, HasDirection.Direction dir, java.lang.String value, int index)` Inserts an item into the list box, specifying its direction and an initial value for the item.
`void` | `ValueBoxBase.setDirection(HasDirection.Direction direction)`
`void` | `Label.setDirection(HasDirection.Direction direction)` Deprecated. Use `LabelBase.setDirectionEstimator(boolean)` and / or pass explicit direction to `Label.setText(java.lang.String)` instead
`void` | `DirectionalTextHelper.setDirection(HasDirection.Direction direction)` Deprecated.
`void` | `Anchor.setDirection(HasDirection.Direction direction)` Deprecated. Use `Anchor.setDirectionEstimator(boolean)` and / or pass explicit direction to `Anchor.setText(java.lang.String)`, `Anchor.setHTML(com.google.gwt.safehtml.shared.SafeHtml)` instead
`void` | `Hyperlink.setHTML(SafeHtml html, HasDirection.Direction dir)`
`void` | `HasDirectionalSafeHtml.setHTML(SafeHtml html, HasDirection.Direction dir)` Sets this object's html, also declaring its direction.
`void` | `HTML.setHTML(SafeHtml html, HasDirection.Direction dir)`
`void` | `CheckBox.setHTML(SafeHtml html, HasDirection.Direction dir)`
`void` | `Anchor.setHTML(SafeHtml html, HasDirection.Direction dir)`
`void` | `HasDirectionalHtml.setHTML(java.lang.String html, HasDirection.Direction dir)` Sets this object's html, also declaring its direction.
`void` | `HTML.setHTML(java.lang.String html, HasDirection.Direction dir)` Sets the label's content to the given HTML, applying the given direction.
`void` | `ListBox.setItemText(int index, java.lang.String text, HasDirection.Direction dir)` Sets the text associated with the item at a given index.
`protected void` | `ListBox.setOptionText(OptionElement option, java.lang.String text, HasDirection.Direction dir)` Sets the text of an option element.
`void` | `Label.setText(java.lang.String text, HasDirection.Direction dir)` Sets the label's content to the given text, applying the given direction.
`void` | `Hyperlink.setText(java.lang.String text, HasDirection.Direction dir)`
`void` | `HasDirectionalText.setText(java.lang.String text, HasDirection.Direction dir)` Sets this object's text, also declaring its direction.
`void` | `CheckBox.setText(java.lang.String text, HasDirection.Direction dir)`
`void` | `Anchor.setText(java.lang.String text, HasDirection.Direction dir)`
`void` | `DirectionalTextHelper.setTextOrHtml(java.lang.String content, HasDirection.Direction dir, boolean isHtml)` Sets the element's content to the given value (either plain text or HTML), applying the given direction.
`static HasHorizontalAlignment.HorizontalAlignmentConstant` | `HasHorizontalAlignment.HorizontalAlignmentConstant.startOf(HasDirection.Direction direction)`

Constructors in com.google.gwt.user.client.ui with parameters of type HasDirection.Direction
`Anchor(SafeHtml html, HasDirection.Direction dir)` Creates an anchor for scripting.
`Anchor(SafeHtml html, HasDirection.Direction dir, SafeUri href)` Creates an anchor with its html and href (target URL) specified.
`Anchor(SafeHtml html, HasDirection.Direction dir, java.lang.String href)` Creates an anchor with its html and href (target URL) specified.
`Anchor(java.lang.String text, HasDirection.Direction dir)` Creates an anchor for scripting.
`Anchor(java.lang.String text, HasDirection.Direction dir, java.lang.String href)` Creates an anchor with its text and href (target URL) specified.
`CheckBox(SafeHtml label, HasDirection.Direction dir)` Creates a check box with the specified text label.
`CheckBox(java.lang.String label, HasDirection.Direction dir)` Creates a check box with the specified text label.
`HTML(SafeHtml html, HasDirection.Direction dir)` Creates an HTML widget with the specified contents and with the specified direction.
`HTML(java.lang.String html, HasDirection.Direction dir)` Creates an HTML widget with the specified HTML contents and with the specified direction.
`Hyperlink(SafeHtml html, HasDirection.Direction dir, java.lang.String targetHistoryToken)` Creates a hyperlink with its html and target history token specified.
`Hyperlink(java.lang.String text, HasDirection.Direction dir, java.lang.String targetHistoryToken)` Creates a hyperlink with its text and target history token specified.
`InlineHTML(SafeHtml html, HasDirection.Direction dir)` Creates an HTML widget with the specified contents and with the specified direction.
`InlineHTML(java.lang.String html, HasDirection.Direction dir)` Creates an HTML widget with the specified HTML contents and with the specified direction.
`InlineHyperlink(SafeHtml html, HasDirection.Direction dir, java.lang.String targetHistoryToken)` Creates a hyperlink with its html and target history token specified.
`InlineHyperlink(java.lang.String text, HasDirection.Direction dir, java.lang.String targetHistoryToken)` Creates a hyperlink with its text and target history token specified.
`InlineLabel(java.lang.String text, HasDirection.Direction dir)` Creates a label with the specified text and direction.
`Label(java.lang.String text, HasDirection.Direction dir)` Creates a label with the specified text and direction.
`RadioButton(java.lang.String name, SafeHtml label, HasDirection.Direction dir)`
`RadioButton(java.lang.String name, java.lang.String label, HasDirection.Direction dir)`

GWT 2.7.0