tornadofx / tornadofx / FXPropertyResourceBundle

FXPropertyResourceBundle

class FXPropertyResourceBundle : PropertyResourceBundle

Constructors

<init> FXPropertyResourceBundle(input: InputStreamReader)

Functions

containsKey fun containsKey(key: String): Boolean

Always return true, since we want to supply a default text message instead of throwing exception

handleGetObject fun handleGetObject(key: String?): Any

Lookup resource in this bundle. If no value, lookup in parent bundle if defined. If we still have no value, return "key" instead of null.

inheritFromGlobal fun inheritFromGlobal(): Unit

Extension Functions

format fun ResourceBundle.format(key: String, vararg fields: Any): String

Convenience function to retrieve a translation and format it with values.

get operator fun ResourceBundle.get(key: String): String

Convenience function to support lookup via messageskey

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