ron
01/04/2017, 7:59 AM@postConstruct
edvin
01/04/2017, 8:11 AMinit
block, but I'm talking about the fact that I need to run a function called Component.init()
to make sure that a component enters the TornadoFX lifecycle correctly. This happens whenever you inject or find a component, but it won't happen if you instantiate it manually. In that case you'd have to call init()
from the init
block of your component. See? 🙂edvin
01/04/2017, 8:11 AMinit { with(root)
and do override val root = build {
?ron
01/04/2017, 8:15 AMron
01/04/2017, 8:16 AMron
01/04/2017, 8:16 AMron
01/04/2017, 8:17 AMron
01/04/2017, 8:18 AMron
01/04/2017, 8:18 AMron
01/04/2017, 8:20 AMron
01/04/2017, 8:20 AMedvin
01/04/2017, 8:27 AMparam()
delegate, but that's the best we can do for now I think.edvin
01/04/2017, 8:28 AMpaddingProperty
is no good for binding, since it represents an Insets
object. The new padding properties I added can easily be bound to a slider though.edvin
01/04/2017, 8:41 AMDoubleProperty
instead of Property<Double>
though. Will change them.ron
01/04/2017, 8:42 AMedvin
01/04/2017, 9:25 AMedvin
01/04/2017, 9:50 AMpaddingXXXProperty
should be good now.ron
01/04/2017, 9:50 AMedvin
01/04/2017, 9:51 AMDragging the slider will adjust padding on all sides▾
edvin
01/04/2017, 9:52 AMinit()
function of the Fragment that is not run. The result is that it will not receive docking events, hence it will stay undocked forever. Fragments will only receive subscription events when they are docked.ron
01/04/2017, 9:53 AMsuper.init()
thereedvin
01/04/2017, 9:54 AMinit()
function is not the same as the init
block. It's a function that just happens to be named init
.ron
01/04/2017, 9:56 AMedvin
01/04/2017, 9:59 AMron
01/04/2017, 10:00 AMron
01/04/2017, 10:00 AMuser
01/04/2017, 11:58 AMedvin
01/04/2017, 12:07 PMedvin
01/04/2017, 12:07 PM