Nikky
09/22/2018, 7:47 PMValV
09/22/2018, 9:10 PMreified
, 'cause typeTokenOf()
from the example above takes a class name, which I do not know e.g. val myType = typeTokenOf<String>()
, I have only an object of some type myColumn
, and cannot be passed into the function as val myType = typeTokenOf<myColumn>() // Error
fun <S, T> translate(c: TableColumn<S, T>): ObjectProperty<T> = SimpleObjectProperty<T>(c.getCellData(null))
SimpleObjectProperty<T>(c.getCellData(null))
gives desired resultfun translate
worksNikky
09/22/2018, 11:01 PMList<*>