public int getMaxLength() {
        return getInputElement().getMaxLength();
    }
Gets the maximum allowable length of the text box.

@return the maximum length, in characters
stroom-core-client-widget/src/main/java/com/google/gwt/user/client/ui/TextBox.java