public void setDirection(Direction direction) {
        BidiUtils.setDirectionOnElement(getElement(), direction);
    }
Sets the cursor position.
<p>
This will only work when the widget is attached to the document and not
hidden.

@param pos the new cursor position
stroom-core-client-widget/src/main/java/com/google/gwt/user/client/ui/ValueBoxBase.java