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

Constructors

Link copied to clipboard
constructor(harbour: Harbour, map: Map<String, (Harbour) -> Dock>)

Functions

Link copied to clipboard
open override fun createDock(harbour: Harbour, dockID: String): Dock?
Link copied to clipboard
open override fun dockClosed(harbour: Harbour, dock: Dock)

An optional method, which gives you the opportunity to tidy up (e.g. release resources) when a dock is closed.

Link copied to clipboard