Class LiveReload

java.lang.Object
megalodonte.application.reload.LiveReload

public final class LiveReload extends Object
Development-only screen refresh. No class-loader replacement or lifecycle restart.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    applyRouteWindowMode(javafx.stage.Stage stage, boolean fullScreen)
    Apply route-owned window mode and remember mandatory full-screen across dev restarts.
    static void
    markPrimary(javafx.stage.Stage stage)
    Give the application stage a stable identity before the startup handler creates its view.
    static Component
    Render with subscription ownership only in a development-agent session.
    static boolean
    restoreBeforeShow(javafx.stage.Stage stage)
    Restore saved bounds and native mode after application code has configured the stage.
    static void
    restoreFocusAfterShow(javafx.stage.Stage stage)
    Preserve foreground/background intent after JavaFX maps the recreated native window.
    static void
    track(javafx.stage.Stage stage, ScreenComponent screen, javafx.scene.Parent root)
    Track only framework-managed, currently rendered screens, on the FX thread.
    static void
    untrack(javafx.stage.Stage stage)
    Drop a route that is being destroyed or replaced by an unmanaged view.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • markPrimary

      public static void markPrimary(javafx.stage.Stage stage)
      Give the application stage a stable identity before the startup handler creates its view.
    • render

      public static Component render(ScreenComponent screen)
      Render with subscription ownership only in a development-agent session.
    • track

      public static void track(javafx.stage.Stage stage, ScreenComponent screen, javafx.scene.Parent root)
      Track only framework-managed, currently rendered screens, on the FX thread.
    • restoreBeforeShow

      public static boolean restoreBeforeShow(javafx.stage.Stage stage)
      Restore saved bounds and native mode after application code has configured the stage.
    • applyRouteWindowMode

      public static void applyRouteWindowMode(javafx.stage.Stage stage, boolean fullScreen)
      Apply route-owned window mode and remember mandatory full-screen across dev restarts.
    • restoreFocusAfterShow

      public static void restoreFocusAfterShow(javafx.stage.Stage stage)
      Preserve foreground/background intent after JavaFX maps the recreated native window.
    • untrack

      public static void untrack(javafx.stage.Stage stage)
      Drop a route that is being destroyed or replaced by an unmanaged view.