tornadofx / tornadofx / ResourceLookup

ResourceLookup

class ResourceLookup

Constructors

<init> ResourceLookup(component: Any)

Properties

component val component: Any

Functions

get operator fun get(resource: String): String
image fun image(resource: String): Image
imageview fun imageview(resource: String, lazyload: Boolean = false): ImageView
json fun json(resource: String): JsonObject
jsonArray fun jsonArray(resource: String): JsonArray
media fun media(resource: String): Media
stream fun stream(resource: String): InputStream
text fun text(resource: String): String
url fun url(resource: String): URL

Extension Functions

getProperty fun <T> Any.getProperty(prop: KMutableProperty1<*, T>): ObjectProperty<T>
observable fun <T : Any> Any.observable(propName: String): ObjectProperty<T>