add

fun add(dockID: String): Dock?

Adds a dock at its preferred side of the Harbour. See Dock.defaultSide. If the dock is already present, this is a no-op.

The dock is created with the aid if dockFactory.


fun add(dockID: String, side: Side, isPrimary: Boolean = true): Dock?

Adds a dock to a particular side of the Harbour. If the dock is already present (in any position), this is a no-op.

The dock is created with the aid if dockFactory.


fun add(dock: Dock)

Add a dock to its preferred side of the Harbour. See Dock.defaultSide. This is rarely used because it is preferable to use add which takes a dockID.


fun add(dock: Dock, side: Side, isPrimary: Boolean = true)

Adds the dock to this Harbour at a particular position give by side and isPrimary. If the dock is already present (in any position), this is a no-op.

This is rarely used because it is preferable to use add which takes a dockID.