com.sencha.gxt.data.shared
Interface Converter<N,O>

Type Parameters:
N - the model value type
O - the field value type

public interface Converter<N,O>

Converts back and forth between model and field values


Method Summary
 N convertFieldValue(O object)
          Converts the value in the field to a value that can be stored in the model
 O convertModelValue(N object)
          Converts the value from the model to something that can be displayed and edited by the user
 

Method Detail

convertFieldValue

N convertFieldValue(O object)
Converts the value in the field to a value that can be stored in the model

Parameters:
object - the value displayed in the field/cell
Returns:
a value to be placed in the model

convertModelValue

O convertModelValue(N object)
Converts the value from the model to something that can be displayed and edited by the user

Parameters:
object - the value in the model object
Returns:
a value to be rendered or edited in a cell or field


Copyright © 2012. All Rights Reserved.