Class SummaryTabController


  • public class SummaryTabController
    extends BaseController
    Controller for the Summary tab, displayed as the final tab before PDF generation. Presents a read-only overview of all selected line items grouped by category, along with calculated totals. The down payment field is editable; the grand total updates reactively as the user enters a value. Each section header and line item is clickable, navigating the user back to the corresponding data entry tab. Refreshes automatically when the tab is shown.
    • Constructor Detail

      • SummaryTabController

        public SummaryTabController()
    • Method Detail

      • buildView

        public javafx.scene.control.ScrollPane buildView​(java.util.function.Consumer<java.lang.Integer> onJumpToTab)
        Builds the summary tab view and returns it wrapped in a ScrollPane.
        Parameters:
        onJumpToTab - a Consumer accepting a tab index, invoked when the user clicks a clickable label to jump to that tab
        Returns:
        a ScrollPane containing the full summary layout
      • refresh

        public void refresh()
        Rebuilds the summary content from the current StatementContext. Called on tab activation via onShow() and after a reset.
      • onShow

        public void onShow()
        Refreshes the summary content when the tab becomes active.
        Overrides:
        onShow in class BaseController