![JAR search and dependency download from the Maven repository](/logo.png)
com.sencha.gxt.data.shared.Converter Maven / Gradle / Ivy
/**
* Ext GWT 3.0.0-rc2 - Ext for GWT
* Copyright(c) 2007-2012, Sencha, Inc.
* [email protected]
*
* http://sencha.com/license
*/
package com.sencha.gxt.data.shared;
/**
* Converts back and forth between model and field values
*
* @param the model value type
* @param the field value type
*/
public interface Converter {
/**
* Converts the value in the field to a value that can be stored in the model
*
* @param object the value displayed in the field/cell
* @return a value to be placed in the model
*/
N convertFieldValue(O object);
/**
* Converts the value from the model to something that can be displayed and
* edited by the user
*
* @param object the value in the model object
* @return a value to be rendered or edited in a cell or field
*/
O convertModelValue(N object);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy