fix(commons/ingredient): add missing setters

This commit is contained in:
Zhongheng Liu 2026-01-15 17:10:01 +01:00
commit 9f7f32beff
Signed by: steven
GPG key ID: F69B980899C1C09D
4 changed files with 21 additions and 10 deletions

View file

@ -3,7 +3,14 @@ package client.Ingredient;
import commons.Ingredient;
import javafx.beans.binding.Bindings;
import javafx.beans.binding.DoubleBinding;
import javafx.beans.property.*;
import javafx.beans.property.DoubleProperty;
import javafx.beans.property.LongProperty;
import javafx.beans.property.ReadOnlyDoubleProperty;
import javafx.beans.property.ReadOnlyDoubleWrapper;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.property.SimpleLongProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
public class IngredientViewModel {
private final LongProperty id = new SimpleLongProperty();

View file

@ -27,8 +27,6 @@ public class IngredientListCtrl {
private ListView<Ingredient> ingredientListView;
@FXML
private NutritionDetailsCtrl nutritionDetailsCtrl;
@FXML
private ListView<Ingredient> ingredientListView;
@Inject
public IngredientListCtrl(

View file

@ -11,7 +11,6 @@ import javafx.application.Platform;
import javafx.beans.binding.Bindings;
import javafx.beans.property.SimpleObjectProperty;
import javafx.event.ActionEvent;
import javafx.event.EventType;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
@ -22,10 +21,6 @@ import javafx.scene.layout.VBox;
import javafx.util.converter.NumberStringConverter;
import java.io.IOException;
import java.util.IllegalFormatConversionException;
import java.util.IllegalFormatException;
import java.util.Optional;
import java.util.Set;
import java.util.logging.Logger;
public class NutritionDetailsCtrl implements LocaleAware {