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
ValV
09/22/2018, 9:13 PMfun <S, T> translate(c: TableColumn<S, T>): ObjectProperty<T> = SimpleObjectProperty<T>(c.getCellData(null))
ValV
09/22/2018, 9:16 PMSimpleObjectProperty<T>(c.getCellData(null))
gives desired resultValV
09/22/2018, 9:20 PMfun translate
worksNikky
09/22/2018, 11:01 PMList<*>