Class CashAdvanceController
- java.lang.Object
-
- com.palmer.billingstatementgenerator.views.controllers.BaseController
-
- com.palmer.billingstatementgenerator.views.controllers.GridTabController<CashAdvanceLineItem>
-
- com.palmer.billingstatementgenerator.views.controllers.CashAdvanceController
-
public class CashAdvanceController extends GridTabController<CashAdvanceLineItem>
Controller for the Cash Advance Items tab. Renders a grid of cash advance line items, each with a provider text field and an editable amount field. Either field being populated will select the corresponding checkbox automatically.
-
-
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 CashAdvanceController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javafx.scene.control.CheckBoxaddItemRow(CashAdvanceLineItem item, int row)Builds a row for the given cash advance line item, consisting of a checkbox, a provider text field, and an editable amount price field.protected java.util.List<CashAdvanceLineItem>getItems()Returns the list of cash advance 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<CashAdvanceLineItem> getItems()
Returns the list of cash advance line items from the current statement.- Specified by:
getItemsin classGridTabController<CashAdvanceLineItem>- Returns:
- the list of
CashAdvanceLineItemobjects
-
addItemRow
protected javafx.scene.control.CheckBox addItemRow(CashAdvanceLineItem item, int row)
Builds a row for the given cash advance line item, consisting of a checkbox, a provider text field, and an editable amount price field. Both the provider and amount fields are wired to auto-select the checkbox when populated.- Specified by:
addItemRowin classGridTabController<CashAdvanceLineItem>- Parameters:
item- the cash advance line item to renderrow- the grid row index- Returns:
- the
CheckBoxcreated for this row
-
-