Your column builder just declares a type, it doesn...
# tornadofx
e
Your column builder just declares a type, it doesn't extract any data. If you want to just return the item value inside the
ItemViewModel
, you can do:
1
🙏 1
v
@edvin, thanks, I didn't know that
value { ... }
function exists and what it does. The only thong remains -- how to use cell factories.
useTextField
requires string converter. Shall I try in standard Java-way, or TFX has some tricks to handle it?
makeEditable
complains about it is
not implemented for specified class ...SimpleObjectProperty
Your help clarifies a lot, perhaps, I shall contribute this use-case to the TornadoFX wiki (e.g. Part 3: Cook Book)?
e
value { }
is an easy way to supply a
cellValueFactory
in the rare case where you can't simply refer to the property (like in your case). If your property is not a
String
and you want to use
useTextField
, you need to supply a
StringConverter<T>
to tell TornaddoFX how to convert your value to (and possibly from) a
String
so it can be displayed.
A discussion of using generic types like this would be most welcome in the guide for sure!