
com.extjs.gxt.ui.client.binding.Converter Maven / Gradle / Ivy
/*
* Ext GWT - Ext for GWT
* Copyright(c) 2007-2009, Ext JS, LLC.
* [email protected]
*
* http://extjs.com/license
*/
package com.extjs.gxt.ui.client.binding;
/**
* Provides a mechanism to convert data when passing values between model and
* fields.
*/
public abstract class Converter {
/**
* Converts the model's value before being set on the field.
*
* @param value the model value
* @return the field value
*/
public Object convertModelValue(Object value) {
return value;
}
/**
* Converts the field's value before being set on the model.
*
* @param value the field value
* @return the model value
*/
public Object convertFieldValue(Object value) {
return value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy