public void setAlignment(TextAlignment align) {
        getElement().getStyle().setProperty("textAlign", align.getTextAlignString());
    }
Selects all of the text in the box.
<p>
This will only work when the widget is attached to the document and not
hidden.
stroom-core-client-widget/src/main/java/com/google/gwt/user/client/ui/ValueBoxBase.java