Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
JSON type question
I'm trying to write a test code helper method for selecting a row in a given table. Noticing that the JSON created when I click a row in a table is this:
PID5 (class com.vaadin.terminal.gwt.client.ui.VScrollTable) :
firstvisible (i) : 168
clearSelections (b) : true
selected (c) : 180
I wanted to create a changeVariables map to send to a table. My problem is with types. I know that in the above (i) is int and (b) bool, but what is (c) ... surely not char? Is there a list of these definitions somewhere?
Let me know and best regards,
Steve Thompson
--
c is an array of Strings. The ultimate reference for the datatypes is the java method that decodes the values on the server: AbstractCommunicationManager.convertVariableValue. These constants are used:
private static final char VTYPE_PAINTABLE = 'p';
private static final char VTYPE_BOOLEAN = 'b';
private static final char VTYPE_DOUBLE = 'd';
private static final char VTYPE_FLOAT = 'f';
private static final char VTYPE_LONG = 'l';
private static final char VTYPE_INTEGER = 'i';
private static final char VTYPE_STRING = 's';
private static final char VTYPE_ARRAY = 'a';
private static final char VTYPE_STRINGARRAY = 'c';
private static final char VTYPE_MAP = 'm';