OnDemandDockFactory
Creates docks using lambdas.
Pass the constructor a map of Dock IDs mapped to a lambda which will create the dock.
visibleProperty returns a BooleanProperty which can be bound bidirectionally with ToggleButton.selectedProperty
, ToggleMenuItem.selectedProperty
or ToggleCommand.selectedProperty