Class NativeWindowHost

java.lang.Object
megalodonte.application.messaging.NativeWindowHost
All Implemented Interfaces:
AutoCloseable

public final class NativeWindowHost extends Object implements 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 Details

  • Method Details

    • replaceWorker

      public CompletableFuture<Long> replaceWorker(List<String> command)
      Retains window identities. Rejects replacement until outstanding UI events finish.
    • replaceWorker

      public CompletableFuture<Long> replaceWorker(List<String> command, Path directory, Map<String,String> environment)
    • windows

      public Map<String, javafx.stage.Stage> windows()
      Read-only registry for host integrations; returned Stages remain host-owned.
    • activeGeneration

      public long activeGeneration()
    • activeWorkerPid

      public long activeWorkerPid()
    • readyForReplacement

      public boolean readyForReplacement()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable