public Direction getDirection() {
        return BidiUtils.getDirectionOnElement(getElement());
    }
Gets the current position of the cursor (this also serves as the beginning
of the text selection).

@return the cursor's position
stroom-core-client-widget/src/main/java/com/google/gwt/user/client/ui/ValueBoxBase.java