/** * Convert the given value from the UI type to the data source type. * * @param fieldValue * The value to convert. Typically returned by * {@link #getFieldValue()} * @return The converted value that is compatible with the data source type. * @throws Converter.ConversionException * if there is no converter and the type is not compatible with * the data source type. */ private Object convertToModel(T fieldValue) throws Converter.ConversionException { return convertToModel(fieldValue, getLocale()); }
/** * Returns the current value (as returned by {@link #getValue()}) converted * to the data source type. * <p> * This returns the same as {@link AbstractField#getValue()} if no converter * has been set. The value is not necessarily the same as the data source * value e.g. if the field is in buffered mode and has been modified. * </p> * * @return The converted value that is compatible with the data source type */ public Object getConvertedValue() { return convertToModel(getFieldValue()); }
convertToModel(newFieldValue)); if (!SharedUtil.equals(newFieldValue, doubleConvertedFieldValue)) { .setValue(convertToModel(newFieldValue));
Object convertedValue = convertToModel(getInternalValue(), valueLocale); T newinternalValue = convertFromModel(convertedValue);