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;
}
Aggregations