Navigation & FlowNavegación y flujo
The three classes that move users through your app and carry shared
state between screens. They are complementary and commonly used together:
FlowController loads views and swaps scenes,
StageManager owns the windows, and AppContext
holds the cross-cutting data both need.
Las tres clases que mueven a los usuarios por tu app y transportan estado
compartido entre pantallas. Son complementarias y se usan habitualmente juntas:
FlowController carga vistas y cambia escenas,
StageManager administra las ventanas y AppContext
guarda los datos transversales que ambas necesitan.
ClassesClases
FlowControllerAppContextStageManagerA typical flow: FlowController.goViewMain("Login") shows the first screen; after login you stash the user with AppContext.put("user", u); later you open a tool window and register it with StageManager.register("report", stage) so any controller can bring it to front.Un flujo típico: FlowController.goViewMain("Login") muestra la primera pantalla; tras el login guardas el usuario con AppContext.put("user", u); más tarde abres una ventana de herramienta y la registras con StageManager.register("report", stage) para que cualquier controlador pueda traerla al frente.