Uses of Enum Class
Model.ServiceType
Packages that use ServiceType
Package
Description
The Controller package contains classes that handle the control and logic of the application.
The Model package contains classes that represent the data and business logic of the application.
The View package contains classes related to the user interface (UI) of the application.
-
Uses of ServiceType in Controller
Fields in Controller with type parameters of type ServiceTypeModifier and TypeFieldDescriptionprivate static Map<ServiceType,Double[]> ServiceController.servicePricesA map that associatesServiceTypewith an array ofDoubleto represent service prices.Methods in Controller with parameters of type ServiceTypeModifier and TypeMethodDescriptionstatic doubleServiceController.getServicePrice(ServiceType serviceType) Retrieves the service price for a specific service type.static doubleServiceController.getUnitPrice(ServiceType serviceType) Retrieves the unit price for a specific service type.static voidServiceController.updateServiceCharges(ServiceType serviceType, double newServiceCharges) Updates the service charges for a specific service type and saves the changes.static voidServiceController.updateUnitCharges(ServiceType serviceType, double newUnitCharges) Updates the unit charges for a specific service type and saves the changes. -
Uses of ServiceType in Model
Fields in Model declared as ServiceTypeMethods in Model that return ServiceTypeModifier and TypeMethodDescriptionUtilityBill.getType()Returns the service type associated with the utility bill.static ServiceTypeReturns the enum constant of this class with the specified name.static ServiceType[]ServiceType.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in Model with parameters of type ServiceTypeModifier and TypeMethodDescriptionvoidUtilityBill.setType(ServiceType type) Sets the service type for the utility bill. -
Uses of ServiceType in View
Methods in View with parameters of type ServiceTypeModifier and TypeMethodDescriptionprotected voidApp.editService(ServiceType serviceType, double serviceCharges, double unitCharges) Updates the service charges and unit charges for a specific service type.protected voidApp.editServicePage(ServiceType serviceType) Opens the edit service page for a specific service type.Constructors in View with parameters of type ServiceTypeModifierConstructorDescriptionEditServiceView(App app, ServiceType serviceType) EditServiceView represents a user interface for modifying and saving service pricing details.