java.lang.Object | ||
↳ | com.google.gwt.i18n.shared.BidiFormatterBase | |
↳ | com.google.gwt.i18n.shared.SafeHtmlBidiFormatter |
A wrapper to BidiFormatter
whose methods return SafeHtml
instead of String
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns "left" for RTL context direction.
| |||||||||||
Factory for creating an instance of SafeHtmlBidiFormatter given the context
direction and the desired span wrapping behavior (see below).
| |||||||||||
Factory for creating an instance of SafeHtmlBidiFormatter given the context
direction.
| |||||||||||
Factory for creating an instance of SafeHtmlBidiFormatter given the context
direction and the desired span wrapping behavior (see below).
| |||||||||||
Factory for creating an instance of SafeHtmlBidiFormatter given the context
direction.
| |||||||||||
Factory for creating an instance of SafeHtmlBidiFormatter whose context
direction matches the current locale's direction, and given the desired
span wrapping behavior (see below).
| |||||||||||
Factory for creating an instance of SafeHtmlBidiFormatter whose context
direction matches the current locale's direction.
| |||||||||||
Returns "right" for RTL context direction.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class com.google.gwt.i18n.shared.BidiFormatterBase | |||||||||||
From class
java.lang.Object
|
html | Html whose direction is to be estimated |
---|
str | String whose direction is to be estimated |
---|
Returns "left" for RTL context direction. Otherwise (LTR or default / unknown context direction) returns "right".
html | Html whose direction is to be estimated |
---|
html
's estimated overall direction
Factory for creating an instance of SafeHtmlBidiFormatter given the context direction and the desired span wrapping behavior (see below).
rtlContext | Whether the context direction is RTL. See an example of
a simple use case at getInstance(boolean) |
---|---|
alwaysSpan | Whether spanWrap(SafeHtml) (and its variations) should
always use a 'span' tag, even when the input direction is neutral
or matches the context, so that the DOM structure of the output
does not depend on the combination of directions
|
Factory for creating an instance of SafeHtmlBidiFormatter given the context
direction. The default behavior of spanWrap(SafeHtml)
and its variations is
set to avoid span wrapping unless it's necessary ('dir' attribute needs to
be set).
contextDir | The context direction. See an example of a simple use
case at getInstance(boolean) . Note: Direction.DEFAULT
indicates unknown context direction. Try not to use it, since it
is impossible to reset the direction back to the context when it
is unknown
|
---|
Factory for creating an instance of SafeHtmlBidiFormatter given the context direction and the desired span wrapping behavior (see below).
contextDir | The context direction. See an example of a simple use
case at getInstance(boolean) . Note: Direction.DEFAULT
indicates unknown context direction. Try not to use it, since it
is impossible to reset the direction back to the context when it
is unknown |
---|---|
alwaysSpan | Whether spanWrap(SafeHtml) (and its variations) should
always use a 'span' tag, even when the input direction is neutral
or matches the context, so that the DOM structure of the output
does not depend on the combination of directions
|
Factory for creating an instance of SafeHtmlBidiFormatter given the context
direction. The default behavior of spanWrap(SafeHtml)
and its variations is
set to avoid span wrapping unless it's necessary ('dir' attribute needs to
be set).
rtlContext | Whether the context direction is RTL.
In one simple use case, the context direction would simply be the
locale direction, which can be retrieved using
LocaleInfo.getCurrentLocale().isRTL()
|
---|
Factory for creating an instance of SafeHtmlBidiFormatter whose context direction matches the current locale's direction, and given the desired span wrapping behavior (see below).
alwaysSpan | Whether spanWrap(SafeHtml) (and its variations) should
always use a 'span' tag, even when the input direction is neutral
or matches the context, so that the DOM structure of the output
does not depend on the combination of directions
|
---|
Factory for creating an instance of SafeHtmlBidiFormatter whose context
direction matches the current locale's direction. The default behavior of
spanWrap(SafeHtml)
and its variations is set to avoid span wrapping unless
it's necessary ('dir' attribute needs to be set).
dir | Given direction |
---|
str | String after which the mark may need to appear |
---|
html | Html after which the mark may need to appear |
---|
html | The input html |
---|---|
dirReset | Whether to append a trailing unicode bidi mark matching the
context direction, when needed, to prevent the possible garbling
of whatever may follow html |
html | The input html |
---|
str | The input string |
---|
str | The input string |
---|---|
dirReset | Whether to append a trailing unicode bidi mark matching the
context direction, when needed, to prevent the possible garbling
of whatever may follow str |
dir | str 's direction |
---|---|
str | The input string |
dir | str 's direction |
---|---|
str | The input string |
dirReset | Whether to append a trailing unicode bidi mark matching the
context direction, when needed, to prevent the possible garbling
of whatever may follow str |
dir | html 's direction |
---|---|
html | The input html |
dirReset | Whether to append a trailing unicode bidi mark matching the
context direction, when needed, to prevent the possible garbling
of whatever may follow html |
dir | str 's direction |
---|---|
html | The input html |
Returns "right" for RTL context direction. Otherwise (LTR or default / unknown context direction) returns "left".
str | The input string |
---|
html | The input html |
---|---|
dirReset | Whether to append a trailing unicode bidi mark matching the
context direction, when needed, to prevent the possible garbling
of whatever may follow html |
html | The input html |
---|
str | The input string |
---|---|
dirReset | Whether to append a trailing unicode bidi mark matching the
context direction, when needed, to prevent the possible garbling
of whatever may follow str |
dir | str 's direction |
---|---|
str | The input string |
dir | html 's direction |
---|---|
html | The input html |
dirReset | Whether to append a trailing unicode bidi mark matching the
context direction, when needed, to prevent the possible garbling
of whatever may follow html |
dir | str 's direction |
---|---|
str | The input string |
dirReset | Whether to append a trailing unicode bidi mark matching the
context direction, when needed, to prevent the possible garbling
of whatever may follow str |
dir | html 's direction |
---|---|
html | The input html |