romainbsl
05/08/2019, 11:42 AMclass MainView : View("Hello TornadoFX") {
override val root = splitpane() {
minWidth = 1280.0
minHeight = 720.0
vbox {
add(PersonListView::class)
}
vbox {
add(PersonEditorView::class) // 1. VBox
}
}
}
class PersonEditorView : View() {
lateinit var tabPane: TabPane
override val root = hbox {
// 2. Getting the parent from MainView ?
tabpane {
hboxConstraints { hGrow = Priority.ALWAYS }
tabPane = this
}
}
}
As the PersonEditorView
is added to the VBox
into the MainView
, is there a way to access in 2 the VBox
in 1 as its parent
?