Search in sources :

Example 1 with IObjectLabelConverter

use of org.jowidgets.api.convert.IObjectLabelConverter in project jo-client-platform by jo-source.

the class ControlPanelProviderBuilderImpl method setObjectLabelConverter.

@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public IControlPanelProviderBuilder<ELEMENT_VALUE_TYPE> setObjectLabelConverter(final IObjectStringConverter objectStringConverter) {
    if (objectStringConverter instanceof IObjectLabelConverter<?>) {
        setObjectLabelConverter((IObjectLabelConverter<?>) objectStringConverter);
    } else {
        this.objectLabelConverter = null;
        this.objectStringConverter = new Some(objectStringConverter);
    }
    return null;
}
Also used : Some(org.jowidgets.util.maybe.Some) IObjectLabelConverter(org.jowidgets.api.convert.IObjectLabelConverter)

Aggregations

IObjectLabelConverter (org.jowidgets.api.convert.IObjectLabelConverter)1 Some (org.jowidgets.util.maybe.Some)1