Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public interface GridFormatter

Turns the values of a GridColumn into the text a cell shows, and the text typed into an editor back into a value.

Methods

public abstract String format(Object value)The text value is shown as; never null.
public abstract Object parse(String text, Object previous)The value text stands for, given the value the cell held before.

Method details

format

public abstract String format(Object value)
The text value is shown as; never null.

parse

public abstract Object parse(String text, Object previous)
The value text stands for, given the value the cell held before.

Returns

the new value, or previous when the text cannot be read