public class SimpleConverter extends BaseConverter<Object>
| Constructor and Description |
|---|
SimpleConverter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
convertForWidget(com.google.gwt.user.client.ui.Widget widget,
Object value)
Convert the given value to a form that can be displayed by the given Widget.
|
Object |
convertFromWidget(com.google.gwt.user.client.ui.Widget widget,
Object value,
Class<?> type)
Convert the given value (as returned by the given Widget) into the given class
|
public Object convertFromWidget(com.google.gwt.user.client.ui.Widget widget, Object value, Class<?> type)
Convertertype - the class to convert into. Useful for handling subclasses (eg. see
NumberConverter)public Object convertForWidget(com.google.gwt.user.client.ui.Widget widget, Object value)
BaseConverter
By default, uses StringUtils.quietValueOf.
convertForWidget in interface Converter<Object>convertForWidget in class BaseConverter<Object>Copyright © 2015. All Rights Reserved.