Uses of Class
com.google.gwt.i18n.client.HasDirection.Direction
-
Packages that use HasDirection.Direction Package Description 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 Modifier and Type Method Description 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 Modifier and Type Method Description 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 Modifier and Type Method Description 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
BidiFormatterBase. estimateDirection(java.lang.String str)
LikeBidiFormatterBase.estimateDirection(String, boolean)
, but assumesisHtml
is false.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
BidiUtils. estimateDirection(java.lang.String str)
LikeBidiUtils.estimateDirection(String, boolean)
, but assumesstr
is not HTML / HTML-escaped.HasDirection.Direction
BidiUtils. estimateDirection(java.lang.String str, boolean isHtml)
Estimates the directionality of a string based on relative word counts.HasDirection.Direction
DirectionEstimator. estimateDirection(SafeHtml html)
Estimates the direction of a SafeHtml.abstract HasDirection.Direction
DirectionEstimator. estimateDirection(java.lang.String str)
Estimates the direction of a plain-text string.HasDirection.Direction
DirectionEstimator. estimateDirection(java.lang.String str, boolean isHtml)
Estimates the direction of a 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.HasDirection.Direction
SafeHtmlBidiFormatter. estimateDirection(SafeHtml html)
HasDirection.Direction
WordCountDirectionEstimator. estimateDirection(java.lang.String str)
Estimates the direction of a given string using the "word count" heuristic, as defined atBidiUtils.estimateDirection(java.lang.String)
.HasDirection.Direction
BidiFormatterBase. getContextDir()
Returns the context direction.Methods in com.google.gwt.i18n.shared with parameters of type HasDirection.Direction Modifier and Type Method Description BidiFormatter
BidiFormatter.Factory. createInstance(HasDirection.Direction contextDir, boolean alwaysSpan)
abstract T
BidiFormatterBase.Factory. createInstance(HasDirection.Direction contextDir, boolean alwaysSpan)
SafeHtmlBidiFormatter
SafeHtmlBidiFormatter.Factory. createInstance(HasDirection.Direction contextDir, boolean alwaysSpan)
static BidiFormatter
BidiFormatter. getInstance(HasDirection.Direction contextDir)
Factory for creating an instance of BidiFormatter given the context direction.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).T
BidiFormatterBase.Factory. getInstance(HasDirection.Direction contextDir, boolean alwaysSpan)
static SafeHtmlBidiFormatter
SafeHtmlBidiFormatter. getInstance(HasDirection.Direction contextDir)
Factory for creating an instance of SafeHtmlBidiFormatter 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).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.SafeHtml
SafeHtmlBidiFormatter. knownDirAttr(HasDirection.Direction dir)
protected java.lang.String
BidiFormatterBase. knownDirAttrBase(HasDirection.Direction dir)
java.lang.String
BidiFormatter. spanWrapWithKnownDir(HasDirection.Direction dir, java.lang.String str)
LikeBidiFormatter.spanWrapWithKnownDir(com.google.gwt.i18n.client.HasDirection.Direction, String, boolean, boolean)
, but assumesisHtml
is false anddirReset
is true.java.lang.String
BidiFormatter. spanWrapWithKnownDir(HasDirection.Direction dir, java.lang.String str, boolean isHtml)
LikeBidiFormatter.spanWrapWithKnownDir(com.google.gwt.i18n.client.HasDirection.Direction, String, boolean, boolean)
, but assumesdirReset
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.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)
SafeHtml
SafeHtmlBidiFormatter. spanWrapWithKnownDir(HasDirection.Direction dir, java.lang.String str, boolean dirReset)
protected java.lang.String
BidiFormatterBase. spanWrapWithKnownDirBase(HasDirection.Direction dir, java.lang.String str, boolean isHtml, boolean dirReset)
java.lang.String
BidiFormatter. unicodeWrapWithKnownDir(HasDirection.Direction dir, java.lang.String str)
LikeBidiFormatter.unicodeWrapWithKnownDir(com.google.gwt.i18n.client.HasDirection.Direction, String, boolean, boolean)
, but assumesisHtml
is false anddirReset
is true.java.lang.String
BidiFormatter. unicodeWrapWithKnownDir(HasDirection.Direction dir, java.lang.String str, boolean isHtml)
LikeBidiFormatter.unicodeWrapWithKnownDir(com.google.gwt.i18n.client.HasDirection.Direction, String, boolean, boolean)
, but assumesdirReset
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.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)
SafeHtml
SafeHtmlBidiFormatter. unicodeWrapWithKnownDir(HasDirection.Direction dir, java.lang.String str, boolean dirReset)
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 Constructor Description 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 Modifier and Type Method Description HasDirection.Direction
Anchor. getDirection()
HasDirection.Direction
Label. getDirection()
Deprecated.UseLabel.getTextDirection()
insteadHasDirection.Direction
ValueBoxBase. getDirection()
HasDirection.Direction
Anchor. getTextDirection()
HasDirection.Direction
CheckBox. getTextDirection()
HasDirection.Direction
DirectionalTextHelper. getTextDirection()
HasDirection.Direction
HasDirectionalText. getTextDirection()
Gets the direction of this object's text.HasDirection.Direction
Hyperlink. getTextDirection()
HasDirection.Direction
Label. getTextDirection()
Methods in com.google.gwt.user.client.ui with parameters of type HasDirection.Direction Modifier and Type Method Description 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
Anchor. setDirection(HasDirection.Direction direction)
Deprecated.UseAnchor.setDirectionEstimator(boolean)
and / or pass explicit direction toAnchor.setText(java.lang.String)
,Anchor.setHTML(com.google.gwt.safehtml.shared.SafeHtml)
insteadvoid
DirectionalTextHelper. setDirection(HasDirection.Direction direction)
Deprecated.void
Label. setDirection(HasDirection.Direction direction)
Deprecated.UseLabelBase.setDirectionEstimator(boolean)
and / or pass explicit direction toLabel.setText(java.lang.String)
insteadvoid
ValueBoxBase. setDirection(HasDirection.Direction direction)
void
DirectionalTextHelper. setHtml(SafeHtml content, HasDirection.Direction dir)
Sets the element's content to the given value (html), applying the given direction.void
DirectionalTextHelper. setHtml(java.lang.String content, HasDirection.Direction dir)
Sets the element's content to the given value (html), applying the given direction.void
Anchor. setHTML(SafeHtml html, HasDirection.Direction dir)
void
CheckBox. 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
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
HTML. setHTML(java.lang.String html, HasDirection.Direction dir)
Sets the label's content to the given HTML, applying the given direction.void
Hyperlink. setHTML(SafeHtml html, HasDirection.Direction dir)
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
Anchor. setText(java.lang.String text, HasDirection.Direction dir)
void
CheckBox. setText(java.lang.String text, HasDirection.Direction dir)
void
DirectionalTextHelper. setText(java.lang.String content, HasDirection.Direction dir)
Sets the element's content to the given value (plain text), applying the given direction.void
HasDirectionalText. setText(java.lang.String text, HasDirection.Direction dir)
Sets this object's text, also declaring its direction.void
Hyperlink. setText(java.lang.String text, HasDirection.Direction dir)
void
Label. setText(java.lang.String text, HasDirection.Direction dir)
Sets the label's content to the given text, applying the given direction.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 Constructor Description 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)
-