Class MainView


  • public class MainView
    extends java.lang.Object
    The main application view, responsible for assembling the full UI layout. Manages the tab pane, header, button bar, and navigation between tabs. Owns the shared Previous, Clear, and Next buttons and rewires them reactively as the user navigates between tabs.
    • Constructor Summary

      Constructors 
      Constructor Description
      MainView()
      Constructs the main view by creating tabs, the button bar, the layout, and wiring tab selection behavior.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javafx.scene.Parent asParent()
      Returns the root node of the main view for embedding in a Scene.
      void fitWindowToLargestTab()
      Sizes the application window to fit the largest tab by iterating through all tabs, measuring their rendered size, and setting the stage dimensions to the maximum observed width and height.
      void skipInstructions()
      Skips the Instructions tab and selects the Service Information tab directly.
      void wireKeyNav​(javafx.scene.Scene scene)
      Wires Alt+Left / Alt+Right to navigate between tabs at the scene level, so the shortcuts work regardless of which control has focus.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MainView

        public MainView()
        Constructs the main view by creating tabs, the button bar, the layout, and wiring tab selection behavior.
    • Method Detail

      • asParent

        public javafx.scene.Parent asParent()
        Returns the root node of the main view for embedding in a Scene.
        Returns:
        the root Parent node
      • skipInstructions

        public void skipInstructions()
        Skips the Instructions tab and selects the Service Information tab directly. Called on non-first launches.
      • wireKeyNav

        public void wireKeyNav​(javafx.scene.Scene scene)
        Wires Alt+Left / Alt+Right to navigate between tabs at the scene level, so the shortcuts work regardless of which control has focus.
        Parameters:
        scene - the main application Scene
      • fitWindowToLargestTab

        public void fitWindowToLargestTab()
        Sizes the application window to fit the largest tab by iterating through all tabs, measuring their rendered size, and setting the stage dimensions to the maximum observed width and height.