Package-level declarations

Types

Link copied to clipboard
abstract class Dock(val dockID: String, val harbour: Harbour) : Region

Docks are panels at the edges of a stage, which can be contracted to save screen real-estate, then shown again with a press of a button.

Link copied to clipboard
interface DockFactory

Harbour can load/save the position and visibility of docks. We therefore need a way to create a dock from a unique identifier.

Link copied to clipboard
class Harbour(initialContent: Node? = null) : Region

Allows Docks to be placed at the sides of a scene. A typical application places the Harbour in the center of a BorderPane, with a MenuBar and ToolBars at the top.

Link copied to clipboard

A DockFactory, implemented by a simple Map.

Link copied to clipboard

Creates docks using lambdas.

Functions

Link copied to clipboard
fun harbour(block: Harbour.() -> Unit): Harbour

Extends Glok's DSL to support Harbours.

Link copied to clipboard
fun Harbour.load(preferences: Preferences): Boolean

Load the layout of the Harbour from Preferences (aka the registry on Windows).

Link copied to clipboard
fun Harbour.save(preferences: Preferences)

Saves the layout of the Harbour to Java Preferences (aka the registry on Windows).