Class NativeWindowHost
java.lang.Object
megalodonte.application.messaging.NativeWindowHost
- All Implemented Interfaces:
AutoCloseable
Experimental permanent JavaFX host. Owns Stage/Scene; workers own no native windows.
Call public methods on the FX thread. This is not yet an adapter for existing screens.
-
Constructor Summary
ConstructorsConstructorDescriptionNativeWindowHost(Consumer<Throwable> errors) NativeWindowHost(Consumer<Throwable> errors, Duration preparationTimeout) -
Method Summary
Modifier and TypeMethodDescriptionlonglongvoidclose()booleanreplaceWorker(List<String> command) Retains window identities.windows()Read-only registry for host integrations; returned Stages remain host-owned.
-
Constructor Details
-
NativeWindowHost
-
NativeWindowHost
-
-
Method Details
-
replaceWorker
Retains window identities. Rejects replacement until outstanding UI events finish. -
replaceWorker
-
windows
-
activeGeneration
public long activeGeneration() -
activeWorkerPid
public long activeWorkerPid() -
readyForReplacement
public boolean readyForReplacement() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-