Class ServiceLineItem
- java.lang.Object
-
- com.palmer.billingstatementgenerator.models.lineitems.ServiceLineItem
-
public class ServiceLineItem extends java.lang.ObjectMutable line item wrapping aServicecatalog entry with JavaFX properties for selection state and package membership. One instance exists per service for the lifetime of the currentStatement.When
inPackageistruethe service is covered by the selected package price and must not be counted in the individual services total.
-
-
Constructor Summary
Constructors Constructor Description ServiceLineItem(Service catalog)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServicegetCatalog()javafx.beans.property.BooleanPropertyinPackageProperty()booleanisInPackage()booleanisSelected()javafx.beans.property.BooleanPropertyselectedProperty()voidsetInPackage(boolean value)voidsetSelected(boolean value)
-
-
-
Constructor Detail
-
ServiceLineItem
public ServiceLineItem(Service catalog)
-
-
Method Detail
-
getCatalog
public Service getCatalog()
-
selectedProperty
public javafx.beans.property.BooleanProperty selectedProperty()
-
isSelected
public boolean isSelected()
-
setSelected
public void setSelected(boolean value)
-
inPackageProperty
public javafx.beans.property.BooleanProperty inPackageProperty()
-
isInPackage
public boolean isInPackage()
-
setInPackage
public void setInPackage(boolean value)
-
-