Package com.smartgwt.client.widgets.form
Interface FormItemInputTransformer
public interface FormItemInputTransformer
-
Method Summary
Modifier and TypeMethodDescriptiontransformInput
(DynamicForm form, FormItem item, Object value, Object oldValue) Called when a FormItem's value is about to change as the result of user interaction.
-
Method Details
-
transformInput
Called when a FormItem's value is about to change as the result of user interaction. This method fires after the user performed an action that would change the value of this field, and allows the developer to modify / reformat the value before it gets validated / saved. Fires before thechange
event.- Parameters:
form
- the managing DynamicForm instaneitem
- the form item itselfvalue
- the new value of the form itemoldValue
- the previous (current) value of the form item- Returns:
- the desired new value for the form item
-