Package com.onec.desktop
Class DesktopSpec
java.lang.Object
com.onec.desktop.DesktopSpec
The builder a
DesktopApp configures. Mirrors the
LayoutSpec style: fluent top-level setters plus nested
builders supplied as lambdas. Produces an immutable DesktopManifest
the shell reads at boot.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSystem-tray builder.static final classWindow geometry builder. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsingleInstance(boolean singleInstance) Whentrue(default) a second launch focuses the running window.Message shown on the splash while the embedded server starts.The window/title-bar text.tray(Consumer<DesktopSpec.TraySpec> customizer) Configure the system-tray icon and menu.window(Consumer<DesktopSpec.WindowSpec> customizer) Configure window geometry.
-
Constructor Details
-
DesktopSpec
public DesktopSpec()
-
-
Method Details
-
title
The window/title-bar text. Defaults to the Spring application name. -
singleInstance
Whentrue(default) a second launch focuses the running window. -
splash
Message shown on the splash while the embedded server starts. -
window
Configure window geometry. -
tray
Configure the system-tray icon and menu.
-