Class ServicesController


  • public class ServicesController
    extends GridTabController<ServiceLineItem>
    Controller for the Services, Facilities & Transportation tab. Extends GridTabController with an additional service package ComboBox above the services grid. When a package is selected, service checkboxes are automatically set to match the package's defined service list. Overrides clear button configuration to account for the combo box selection, and overrides clearAll() to also reset the combo box.
    • Constructor Detail

      • ServicesController

        public ServicesController()
    • Method Detail

      • buildView

        public javafx.scene.layout.GridPane buildView()
        Builds the tab view by first populating the packages combo box, then delegating to the parent to build the services grid. The combo and grid are arranged vertically in a wrapper GridPane.
        Overrides:
        buildView in class GridTabController<ServiceLineItem>
        Returns:
        a GridPane containing the combo box and services grid
      • addItemRow

        protected javafx.scene.control.CheckBox addItemRow​(ServiceLineItem item,
                                                           int row)
        Builds a row for the given service line item, consisting of a checkbox and a read-only price label.
        Specified by:
        addItemRow in class GridTabController<ServiceLineItem>
        Parameters:
        item - the service line item to render
        row - the grid row index
        Returns:
        the CheckBox created for this row
      • configureClearButton

        protected void configureClearButton​(java.util.List<javafx.scene.control.CheckBox> checkBoxes)
        Overrides clear button configuration to also observe the packages combo box value. The clear button is disabled only when no checkboxes are selected AND no package is selected.
        Overrides:
        configureClearButton in class BaseController
        Parameters:
        checkBoxes - the list of service checkboxes to observe