class DocumentView : View("Document-Analyser") { override val root = borderpane { } override fun onDock() { with (workspace) { button("Button").action { } } } }