feeling dumb again, I want to use reflection to cr...
# tornadofx
p
feeling dumb again, I want to use reflection to create the columns in the table i.e: listOf("columnNames").forEach { column("columnName", (ModelClass::getVal)(columnName)) } getVal:
Copy code
fun <R: Any?> getVal(property: String): R{
        @Suppress("UNCHECKED_CAST")
        return this.javaClass.kotlin.declaredMemberProperties.first { it.name == property }.get(this) as R
    }
which works fine if I explicitly call it...