com.extjs.gxt.ui.client.binding
Class Converter

java.lang.Object
  extended by com.extjs.gxt.ui.client.binding.Converter

public abstract class Converter
extends java.lang.Object

Provides a mechanism to convert data when passing values between model and fields.


Constructor Summary
Converter()
           
 
Method Summary
 java.lang.Object convertFieldValue(java.lang.Object value)
          Converts the field's value before being set on the model.
 java.lang.Object convertModelValue(java.lang.Object value)
          Converts the model's value before being set on the field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Converter

public Converter()
Method Detail

convertModelValue

public java.lang.Object convertModelValue(java.lang.Object value)
Converts the model's value before being set on the field.

Parameters:
value - the model value
Returns:
the field value

convertFieldValue

public java.lang.Object convertFieldValue(java.lang.Object value)
Converts the field's value before being set on the model.

Parameters:
value - the field value
Returns:
the model value