All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.terapico.caf.wxappviewcomponent.WxappInputField Maven / Gradle / Ivy

The newest version!
package com.terapico.caf.wxappviewcomponent;

import java.util.Map;

public class WxappInputField extends WxappFormField{
	protected Integer maxLength;
	protected Integer minLength;
	
	
	public Integer getMinLength() {
		return minLength;
	}

	public void setMinLength(Integer minLength) {
		this.minLength = minLength;
	}

	public Integer getMaxLength() {
		return maxLength;
	}

	public void setMaxLength(Integer maxLength) {
		this.maxLength = maxLength;
	}
	
	public WxappInputField withMaxLength(Integer len) {
		this.setMaxLength(len);
		return this;
	}
	public WxappInputField withMinLength(Integer len) {
		this.setMinLength(len);
		return this;
	}

	@Override
	protected void mapFieldsToMap(Map resultMap) {
		super.mapFieldsToMap(resultMap);
		putInMap(resultMap, "maxLength", maxLength);
	}

	@Override
	public String getType() {
		return "input";
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy