public int getVisibleLength() {
        return getInputElement().getSize();
    }
Gets the number of visible characters in the text box.

@return the number of visible characters
stroom-core-client-widget/src/main/java/com/google/gwt/user/client/ui/TextBox.java