ron
12/21/2017, 10:42 AMedvin
12/21/2017, 10:44 AMedvin
12/21/2017, 10:44 AMron
12/21/2017, 10:45 AMron
12/21/2017, 10:45 AMron
12/21/2017, 10:47 AMlabelProperty
not be a better name for that AbstractField.textProperty
edvin
12/21/2017, 10:47 AMtextProperty
field in Field
, not the textProperty()
function that exposes the text property for the textfield.edvin
12/21/2017, 10:47 AMedvin
12/21/2017, 10:48 AMedvin
12/21/2017, 10:50 AMron
12/21/2017, 10:50 AMedvin
12/21/2017, 10:51 AMedvin
12/21/2017, 10:51 AMron
12/21/2017, 10:52 AMron
12/21/2017, 10:52 AMtextfield(entry.sys) {
textProperty().addListener { observable, oldValue, newValue ->
if (!newValue.matches(Regex("\\d*"))) {
text=newValue.replace(Regex("\\D+"), "")
}
}
}
ron
12/21/2017, 10:53 AMron
12/21/2017, 10:53 AMedvin
12/21/2017, 10:55 AMron
12/21/2017, 10:57 AMron
12/21/2017, 11:13 AMedvin
12/21/2017, 11:54 AMron
12/21/2017, 11:55 AMron
12/21/2017, 11:55 AMron
12/21/2017, 11:55 AMron
12/21/2017, 11:55 AMedvin
12/21/2017, 11:59 AMr4zzz4k
12/21/2017, 11:59 AMclass MyApp: App(...) {
init {
FX.reloadViewsOnFocus = false
...
}
}
edvin
12/21/2017, 11:59 AMedvin
12/21/2017, 11:59 AM