Hi
In cuba 7.1 I see that Formatter
class has been deprecated while still advertised in the documentation.
What replacement should we use if not using Datatype
?
Regards
Michael
Hi
In cuba 7.1 I see that Formatter
class has been deprecated while still advertised in the documentation.
What replacement should we use if not using Datatype
?
Regards
Michael
Hi,
The replacement for the Formatter<T>
is a Function<T, String>
(from java.util.function package).
See com.haulmont.cuba.gui.components.HasFormatter:
/**
* Object having a formatter.
*/
public interface HasFormatter<V> {
Function<V, String> getFormatter();
void setFormatter(Function<? super V, String> formatter);
}