Package com.google.gwt.user.client.ui
Interface HasDirectionalText
- All Superinterfaces:
HasText
- All Known Subinterfaces:
HasDirectionalHtml,HasDirectionalSafeHtml
- All Known Implementing Classes:
Anchor,CheckBox,DialogBox.CaptionImpl,HTML,Hyperlink,InlineHTML,InlineHyperlink,InlineLabel,Label,RadioButton
An object that implements this interface contains text that has a direction.
-
Method Summary
Modifier and TypeMethodDescriptionGets the direction of this object's text.voidsetText(String text, HasDirection.Direction dir) Sets this object's text, also declaring its direction.
-
Method Details
-
getTextDirection
HasDirection.Direction getTextDirection()Gets the direction of this object's text.- Returns:
- the direction of this object's text
-
setText
Sets this object's text, also declaring its direction.- Parameters:
text- the object's new textdir- the text's direction
-