TabPane has a function called `connectWorkspaceAct...
# tornadofx
e
TabPane has a function called
connectWorkspaceActions
which does all the work. The implementation of that function also hints to how you could do this for other components.