public int getSelectionLength() {
        return getSelectionLength(getElement());
    }
Gets the length of the current text selection.

@return the text selection length
stroom-core-client-widget/src/main/java/com/google/gwt/user/client/ui/ValueBoxBase.java