Class SpecialChargesController
- java.lang.Object
-
- com.palmer.billingstatementgenerator.views.controllers.BaseController
-
- com.palmer.billingstatementgenerator.views.controllers.GridTabController<SpecialChargeLineItem>
-
- com.palmer.billingstatementgenerator.views.controllers.SpecialChargesController
-
public class SpecialChargesController extends GridTabController<SpecialChargeLineItem>
Controller for the Special Charges tab. Renders a grid of special charge line items. Items with no default cost display an editable price field; items with a default cost display a read-only price label. Items requiring a description also render a text field.
-
-
Field Summary
-
Fields inherited from class com.palmer.billingstatementgenerator.views.controllers.GridTabController
itemsGrid
-
Fields inherited from class com.palmer.billingstatementgenerator.views.controllers.BaseController
clearButton, DOLLAR_FORMATTER, nextButton
-
-
Constructor Summary
Constructors Constructor Description SpecialChargesController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javafx.scene.control.CheckBoxaddItemRow(SpecialChargeLineItem item, int row)Builds a row for the given special charge line item.protected java.util.List<SpecialChargeLineItem>getItems()Returns the list of special charge line items from the current statement.-
Methods inherited from class com.palmer.billingstatementgenerator.views.controllers.GridTabController
addValidationPair, buildView, clearAll, hasInvalidSelections, onClearButtonSet, refreshTotal, reset, setTotalSupplier
-
Methods inherited from class com.palmer.billingstatementgenerator.views.controllers.BaseController
bindIntegerTextField, buildCheckBox, buildPriceField, buildPriceLabel, buildTextField, configTextFieldForInts, configureClearButton, onHide, onNextButtonSet, onShow, setClearButton, setNextButton, wireTextFieldToCheckBox
-
-
-
-
Method Detail
-
getItems
protected java.util.List<SpecialChargeLineItem> getItems()
Returns the list of special charge line items from the current statement.- Specified by:
getItemsin classGridTabController<SpecialChargeLineItem>- Returns:
- the list of
SpecialChargeLineItemobjects
-
addItemRow
protected javafx.scene.control.CheckBox addItemRow(SpecialChargeLineItem item, int row)
Builds a row for the given special charge line item. Items without a default cost render an editable price field; others render a read-only label. Items marked as requiring a description also render a description text field.- Specified by:
addItemRowin classGridTabController<SpecialChargeLineItem>- Parameters:
item- the special charge line item to renderrow- the grid row index- Returns:
- the
CheckBoxcreated for this row
-
-