code: public void setMaxLength(int length) {
  		maxCharacter = length;
  		if (value.length() > maxCharacter) {
  			value = value.substring(0, maxCharacter);
  		}
  	}
docs: Set the length of the allowed input
  
  @param length
  The length of the allowed input