Package com.google.gwt.i18n.client
Interface HasDirection
-
- All Known Subinterfaces:
AutoDirectionHandler.Target
- All Known Implementing Classes:
Anchor,DialogBox.CaptionImpl,DoubleBox,HTML,InlineHTML,InlineLabel,IntegerBox,Label,LongBox,PasswordTextBox,TextArea,TextBox,TextBoxBase,ValueBox,ValueBoxBase
public interface HasDirectionA widget that implements this interface has the ability to override the document directionality for its root element. Widgets that implement this interface should be leaf widgets. More specifically, they should not implement theHasWidgetsinterface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classHasDirection.DirectionPossible return values forgetDirection()and parameter values forsetDirection(Direction).Widgets that implement this interface can either have a direction that is right-to-left (RTL), left-to-right (LTR), or default (which means that their directionality is inherited from their parent widget).
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HasDirection.DirectiongetDirection()Gets the directionality of the widget.voidsetDirection(HasDirection.Direction direction)Sets the directionality for a widget.
-
-
-
Method Detail
-
setDirection
void setDirection(HasDirection.Direction direction)
Sets the directionality for a widget.- Parameters:
direction-RTLif the directionality should be set to right-to-left,LTRif the directionality should be set to left-to-rightDEFAULTif the directionality should not be explicitly set
-
getDirection
HasDirection.Direction getDirection()
Gets the directionality of the widget.- Returns:
RTLif the directionality is right-to-left,LTRif the directionality is left-to-right, orDEFAULTif the directionality is not explicitly specified
-
-