|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
M
- The type of the model value (field type of the model)W
- The type of the widget value (e.g. String for a TextBox
(=HasValue<String>) or Boolean for a
Checkbox
(=HasValue<Boolean>)))public interface Converter<M,W>
Contract for converters that perform model value to widget value transformations and vice versa.
Method Summary | |
---|---|
M |
toModelValue(W widgetValue)
Converts the provided widget value to a model value of type <M>. |
W |
toWidgetValue(M modelValue)
Converts the provided model value to a value usable by widgets of type HasValue<W> . |
Method Detail |
---|
M toModelValue(W widgetValue)
widgetValue
- the widget value to convert, may be null.
W toWidgetValue(M modelValue)
HasValue<W>
.
modelValue
- the model value to convert, may be null.
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |