Class SpecialChargeLineItem
- java.lang.Object
-
- com.palmer.billingstatementgenerator.models.lineitems.SpecialChargeLineItem
-
public class SpecialChargeLineItem extends java.lang.ObjectMutable line item wrapping aSpecialChargecatalog entry. Adds JavaFX properties for selection state, optional description, and effective price. The price defaults to the catalog'sdefaultCost; items with no default cost require the user to enter a value before the statement can proceed.
-
-
Constructor Summary
Constructors Constructor Description SpecialChargeLineItem(SpecialCharge catalog)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.beans.property.StringPropertydescriptionProperty()SpecialChargegetCatalog()java.lang.StringgetDescription()java.math.BigDecimalgetPrice()booleanisSelected()javafx.beans.property.ObjectProperty<java.math.BigDecimal>priceProperty()javafx.beans.property.BooleanPropertyselectedProperty()voidsetDescription(java.lang.String value)voidsetPrice(java.math.BigDecimal value)voidsetSelected(boolean value)
-
-
-
Constructor Detail
-
SpecialChargeLineItem
public SpecialChargeLineItem(SpecialCharge catalog)
-
-
Method Detail
-
getCatalog
public SpecialCharge getCatalog()
-
selectedProperty
public javafx.beans.property.BooleanProperty selectedProperty()
-
isSelected
public boolean isSelected()
-
setSelected
public void setSelected(boolean value)
-
descriptionProperty
public javafx.beans.property.StringProperty descriptionProperty()
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String value)
-
priceProperty
public javafx.beans.property.ObjectProperty<java.math.BigDecimal> priceProperty()
-
getPrice
public java.math.BigDecimal getPrice()
-
setPrice
public void setPrice(java.math.BigDecimal value)
-
-