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.
|
Modifier and Type | Method and 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(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.
|
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
HasDirection.Direction |
DirectionEstimator.estimateDirection(SafeHtml html)
Estimates the direction of a SafeHtml.
|
HasDirection.Direction |
SafeHtmlBidiFormatter.estimateDirection(SafeHtml html) |
abstract HasDirection.Direction |
DirectionEstimator.estimateDirection(String str)
Estimates the direction of a plain-text string.
|
HasDirection.Direction |
BidiUtils.estimateDirection(String str)
Like
BidiUtils.estimateDirection(String, boolean) , but assumes str
is not HTML / HTML-escaped. |
HasDirection.Direction |
WordCountDirectionEstimator.estimateDirection(String str)
Estimates the direction of a given string using the "word count" heuristic,
as defined at
BidiUtils.estimateDirection(java.lang.String) . |
HasDirection.Direction |
AnyRtlDirectionEstimator.estimateDirection(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(String str)
Like
BidiFormatterBase.estimateDirection(String, boolean) , but assumes isHtml is false. |
HasDirection.Direction |
FirstStrongDirectionEstimator.estimateDirection(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 |
DirectionEstimator.estimateDirection(String str,
boolean isHtml)
Estimates the direction of a string.
|
HasDirection.Direction |
BidiUtils.estimateDirection(String str,
boolean isHtml)
Estimates the directionality of a string based on relative word counts.
|
HasDirection.Direction |
BidiFormatterBase.estimateDirection(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.
|
Modifier and Type | Method and Description |
---|---|
abstract T |
BidiFormatterBase.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 SafeHtmlBidiFormatter |
SafeHtmlBidiFormatter.getInstance(HasDirection.Direction contextDir)
Factory for creating an instance of SafeHtmlBidiFormatter 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).
|
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) |
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 String |
BidiFormatterBase.knownDirAttrBase(HasDirection.Direction dir) |
SafeHtml |
SafeHtmlBidiFormatter.spanWrapWithKnownDir(HasDirection.Direction dir,
SafeHtml html) |
SafeHtml |
SafeHtmlBidiFormatter.spanWrapWithKnownDir(HasDirection.Direction dir,
SafeHtml html,
boolean dirReset) |
String |
BidiFormatter.spanWrapWithKnownDir(HasDirection.Direction dir,
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,
String str) |
String |
BidiFormatter.spanWrapWithKnownDir(HasDirection.Direction dir,
String str,
boolean isHtml)
Like
BidiFormatter.spanWrapWithKnownDir(com.google.gwt.i18n.client.HasDirection.Direction, String, boolean, boolean) ,
but assumes dirReset is true. |
SafeHtml |
SafeHtmlBidiFormatter.spanWrapWithKnownDir(HasDirection.Direction dir,
String str,
boolean dirReset) |
String |
BidiFormatter.spanWrapWithKnownDir(HasDirection.Direction dir,
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 String |
BidiFormatterBase.spanWrapWithKnownDirBase(HasDirection.Direction dir,
String str,
boolean isHtml,
boolean dirReset) |
SafeHtml |
SafeHtmlBidiFormatter.unicodeWrapWithKnownDir(HasDirection.Direction dir,
SafeHtml html) |
SafeHtml |
SafeHtmlBidiFormatter.unicodeWrapWithKnownDir(HasDirection.Direction dir,
SafeHtml html,
boolean dirReset) |
String |
BidiFormatter.unicodeWrapWithKnownDir(HasDirection.Direction dir,
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,
String str) |
String |
BidiFormatter.unicodeWrapWithKnownDir(HasDirection.Direction dir,
String str,
boolean isHtml)
Like
BidiFormatter.unicodeWrapWithKnownDir(com.google.gwt.i18n.client.HasDirection.Direction, String, boolean, boolean) ,
but assumes dirReset is true. |
SafeHtml |
SafeHtmlBidiFormatter.unicodeWrapWithKnownDir(HasDirection.Direction dir,
String str,
boolean dirReset) |
String |
BidiFormatter.unicodeWrapWithKnownDir(HasDirection.Direction dir,
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 String |
BidiFormatterBase.unicodeWrapWithKnownDirBase(HasDirection.Direction dir,
String str,
boolean isHtml,
boolean dirReset) |
Constructor and Description |
---|
BidiFormatterBase(HasDirection.Direction contextDir,
boolean alwaysSpan) |
Modifier and Type | Method and Description |
---|---|
HasDirection.Direction |
Label.getDirection()
Deprecated.
Use
Label.getTextDirection() instead |
HasDirection.Direction |
ValueBoxBase.getDirection() |
HasDirection.Direction |
Anchor.getDirection() |
HasDirection.Direction |
HasDirectionalText.getTextDirection()
Gets the direction of this object's text.
|
HasDirection.Direction |
Label.getTextDirection() |
HasDirection.Direction |
DirectionalTextHelper.getTextDirection() |
HasDirection.Direction |
CheckBox.getTextDirection() |
HasDirection.Direction |
Hyperlink.getTextDirection() |
HasDirection.Direction |
Anchor.getTextDirection() |
Modifier and Type | Method and Description |
---|---|
void |
ListBox.addItem(String item,
HasDirection.Direction dir)
Adds an item to the list box, specifying its direction.
|
void |
ListBox.addItem(String item,
HasDirection.Direction dir,
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(String item,
HasDirection.Direction dir,
int index)
Inserts an item into the list box, specifying its direction.
|
void |
ListBox.insertItem(String item,
HasDirection.Direction dir,
String value,
int index)
Inserts an item into the list box, specifying its direction and an initial
value for the item.
|
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 |
ValueBoxBase.setDirection(HasDirection.Direction direction) |
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 |
HTML.setHTML(SafeHtml html,
HasDirection.Direction dir) |
void |
HasDirectionalSafeHtml.setHTML(SafeHtml html,
HasDirection.Direction dir)
Sets this object's html, also declaring its direction.
|
void |
CheckBox.setHTML(SafeHtml html,
HasDirection.Direction dir) |
void |
Hyperlink.setHTML(SafeHtml html,
HasDirection.Direction dir) |
void |
Anchor.setHTML(SafeHtml html,
HasDirection.Direction dir) |
void |
HTML.setHTML(String html,
HasDirection.Direction dir)
Sets the label's content to the given HTML, applying the given direction.
|
void |
HasDirectionalHtml.setHTML(String html,
HasDirection.Direction dir)
Sets this object's html, also declaring its direction.
|
void |
ListBox.setItemText(int index,
String text,
HasDirection.Direction dir)
Sets the text associated with the item at a given index.
|
protected void |
ListBox.setOptionText(OptionElement option,
String text,
HasDirection.Direction dir)
Sets the text of an option element.
|
void |
HasDirectionalText.setText(String text,
HasDirection.Direction dir)
Sets this object's text, also declaring its direction.
|
void |
Label.setText(String text,
HasDirection.Direction dir)
Sets the label's content to the given text, applying the given direction.
|
void |
CheckBox.setText(String text,
HasDirection.Direction dir) |
void |
Hyperlink.setText(String text,
HasDirection.Direction dir) |
void |
Anchor.setText(String text,
HasDirection.Direction dir) |
void |
DirectionalTextHelper.setTextOrHtml(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) |
Constructor and 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,
String href)
Creates an anchor with its html and href (target URL) specified.
|
Anchor(String text,
HasDirection.Direction dir)
Creates an anchor for scripting.
|
Anchor(String text,
HasDirection.Direction dir,
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(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(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,
String targetHistoryToken)
Creates a hyperlink with its html and target history token specified.
|
Hyperlink(String text,
HasDirection.Direction dir,
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(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,
String targetHistoryToken)
Creates a hyperlink with its html and target history token specified.
|
InlineHyperlink(String text,
HasDirection.Direction dir,
String targetHistoryToken)
Creates a hyperlink with its text and target history token specified.
|
InlineLabel(String text,
HasDirection.Direction dir)
Creates a label with the specified text and direction.
|
Label(String text,
HasDirection.Direction dir)
Creates a label with the specified text and direction.
|
RadioButton(String name,
SafeHtml label,
HasDirection.Direction dir) |
RadioButton(String name,
String label,
HasDirection.Direction dir) |
Copyright © 2018. All rights reserved.