Examples of findCustomEditor()


Examples of org.springframework.beans.BeanWrapperImpl.findCustomEditor()

            String propertyName = field.getFieldConfig().getPropertyName();

            if (bean.isReadableProperty(propertyName)) {
                Object propertyValue = bean.getPropertyValue(propertyName);
                Class<?> propertyType = bean.getPropertyType(propertyName);
                PropertyEditor editor = bean.findCustomEditor(propertyType, propertyName);

                if (editor == null) {
                    editor = BeanUtils.findEditorByConvention(propertyType);
                }
View Full Code Here

Examples of org.springframework.beans.BeanWrapperImpl.findCustomEditor()

            String propertyName = field.getFieldConfig().getPropertyName();

            if (bean.isReadableProperty(propertyName)) {
                Object propertyValue = bean.getPropertyValue(propertyName);
                Class<?> propertyType = bean.getPropertyType(propertyName);
                PropertyEditor editor = bean.findCustomEditor(propertyType, propertyName);

                if (editor == null) {
                    editor = BeanUtils.findEditorByConvention(propertyType);
                }
View Full Code Here

Examples of org.springframework.beans.PropertyEditorRegistry.findCustomEditor()

    if (editorRegistry != null) {
      Class valueTypeToUse = valueType;
      if (valueTypeToUse == null) {
        valueTypeToUse = getFieldType(field);
      }
      return editorRegistry.findCustomEditor(valueTypeToUse, fixedField(field));
    }
    else {
      return null;
    }
  }
View Full Code Here

Examples of org.springframework.beans.PropertyEditorRegistry.findCustomEditor()

    if (editorRegistry != null) {
      Class<?> valueTypeToUse = valueType;
      if (valueTypeToUse == null) {
        valueTypeToUse = getFieldType(field);
      }
      return editorRegistry.findCustomEditor(valueTypeToUse, fixedField(field));
    }
    else {
      return null;
    }
  }
View Full Code Here

Examples of org.springframework.beans.PropertyEditorRegistry.findCustomEditor()

    if (editorRegistry != null) {
      Class<?> valueTypeToUse = valueType;
      if (valueTypeToUse == null) {
        valueTypeToUse = getFieldType(field);
      }
      return editorRegistry.findCustomEditor(valueTypeToUse, fixedField(field));
    }
    else {
      return null;
    }
  }
View Full Code Here

Examples of org.springframework.beans.PropertyEditorRegistry.findCustomEditor()

    BindStatus bindStatus = getBindStatus();
    PropertyEditor editor = null;
    if (resolvedValue != null && bindStatus.getErrors() instanceof BindingResult) {
      PropertyEditorRegistry editorRegistry = ((BindingResult) bindStatus.getErrors()).getPropertyEditorRegistry();
      if (editorRegistry != null) {
        editor = editorRegistry.findCustomEditor(resolvedValue.getClass(), bindStatus.getPath());
      }
    }
    tagWriter.writeAttribute("value", getDisplayString(resolvedValue, editor));
    if (SelectedValueComparator.isSelected(bindStatus, resolvedValue)) {
      tagWriter.writeAttribute("checked", "checked");
View Full Code Here

Examples of org.springframework.beans.PropertyEditorRegistry.findCustomEditor()

    }
    Map convertedValueCache = new HashMap(1);
    PropertyEditor editor = null;
    boolean candidateIsString = (candidateValue instanceof String);
    if (editorRegistry != null && !candidateIsString) {
      editor = editorRegistry.findCustomEditor(candidateValue.getClass(), bindStatus.getPath());
    }
    for (Iterator it = collection.iterator(); it.hasNext();) {
      Object element = it.next();
      if (editor == null && editorRegistry != null && element != null && candidateIsString) {
        editor = editorRegistry.findCustomEditor(element.getClass(), bindStatus.getPath());
View Full Code Here

Examples of org.springframework.beans.PropertyEditorRegistry.findCustomEditor()

      editor = editorRegistry.findCustomEditor(candidateValue.getClass(), bindStatus.getPath());
    }
    for (Iterator it = collection.iterator(); it.hasNext();) {
      Object element = it.next();
      if (editor == null && editorRegistry != null && element != null && candidateIsString) {
        editor = editorRegistry.findCustomEditor(element.getClass(), bindStatus.getPath());
      }
      if (exhaustiveCompare(element, candidateValue, editor, convertedValueCache)) {
        return true;
      }
    }
View Full Code Here

Examples of org.springframework.beans.PropertyEditorRegistry.findCustomEditor()

    Map convertedValueCache = new HashMap(1);
    for (Iterator it = collection.iterator(); it.hasNext();) {
      Object element = it.next();
      PropertyEditor propertyEditor = null;
      if (element != null && editorRegistry != null) {
        propertyEditor = editorRegistry.findCustomEditor(element.getClass(), bindStatus.getPath());
      }
      if (exhaustiveCompare(element, candidateValue, propertyEditor, convertedValueCache)) {
        return true;
      }
    }
View Full Code Here

Examples of org.springframework.beans.PropertyEditorRegistry.findCustomEditor()

    if (editorRegistry != null) {
      Class<?> valueTypeToUse = valueType;
      if (valueTypeToUse == null) {
        valueTypeToUse = getFieldType(field);
      }
      return editorRegistry.findCustomEditor(valueTypeToUse, fixedField(field));
    }
    else {
      return null;
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.