org.springframework.web.servlet.support.BindStatus#getEditor ( )源码实例Demo

下面列出了org.springframework.web.servlet.support.BindStatus#getEditor ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: spring-analysis-note   文件: SelectTag.java
/**
 * Returns '{@code true}' if the bound value requires the
 * resultant '{@code select}' tag to be multi-select.
 */
private boolean forceMultiple() throws JspException {
	BindStatus bindStatus = getBindStatus();
	Class<?> valueType = bindStatus.getValueType();
	if (valueType != null && typeRequiresMultiple(valueType)) {
		return true;
	}
	else if (bindStatus.getEditor() != null) {
		Object editorValue = bindStatus.getEditor().getValue();
		if (editorValue != null && typeRequiresMultiple(editorValue.getClass())) {
			return true;
		}
	}
	return false;
}
 
源代码2 项目: java-technology-stack   文件: SelectTag.java
/**
 * Returns '{@code true}' if the bound value requires the
 * resultant '{@code select}' tag to be multi-select.
 */
private boolean forceMultiple() throws JspException {
	BindStatus bindStatus = getBindStatus();
	Class<?> valueType = bindStatus.getValueType();
	if (valueType != null && typeRequiresMultiple(valueType)) {
		return true;
	}
	else if (bindStatus.getEditor() != null) {
		Object editorValue = bindStatus.getEditor().getValue();
		if (editorValue != null && typeRequiresMultiple(editorValue.getClass())) {
			return true;
		}
	}
	return false;
}
 
源代码3 项目: lams   文件: SelectTag.java
/**
 * Returns '{@code true}' if the bound value requires the
 * resultant '{@code select}' tag to be multi-select.
 */
private boolean forceMultiple() throws JspException {
	BindStatus bindStatus = getBindStatus();
	Class<?> valueType = bindStatus.getValueType();
	if (valueType != null && typeRequiresMultiple(valueType)) {
		return true;
	}
	else if (bindStatus.getEditor() != null) {
		Object editorValue = bindStatus.getEditor().getValue();
		if (editorValue != null && typeRequiresMultiple(editorValue.getClass())) {
			return true;
		}
	}
	return false;
}
 
源代码4 项目: spring4-understanding   文件: SelectTag.java
/**
 * Returns '{@code true}' if the bound value requires the
 * resultant '{@code select}' tag to be multi-select.
 */
private boolean forceMultiple() throws JspException {
	BindStatus bindStatus = getBindStatus();
	Class<?> valueType = bindStatus.getValueType();
	if (valueType != null && typeRequiresMultiple(valueType)) {
		return true;
	}
	else if (bindStatus.getEditor() != null) {
		Object editorValue = bindStatus.getEditor().getValue();
		if (editorValue != null && typeRequiresMultiple(editorValue.getClass())) {
			return true;
		}
	}
	return false;
}