Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javafx.beans.property.DoubleProperty;
- import javafx.beans.property.IntegerProperty;
- import javafx.beans.property.SimpleDoubleProperty;
- import javafx.beans.property.SimpleIntegerProperty;
- import javafx.beans.property.SimpleStringProperty;
- import javafx.beans.property.StringProperty;
- public class Ingredients {
- private IntegerProperty id;
- private DoubleProperty amount;
- private StringProperty unit;
- private StringProperty ingred;
- public Ingredients() {
- this.id = new SimpleIntegerProperty();
- this.amount = new SimpleDoubleProperty();
- this.unit = new SimpleStringProperty();
- this.ingred = new SimpleStringProperty();
- }
- public int getId() {
- return id.get();
- }
- public void setId(int id) {
- this.id.set(id);
- }
- public IntegerProperty getIdProperty() {
- return id;
- }
- public double getAmount() {
- return amount.get();
- }
- public void setAmount(double amount) {
- this.amount.set(amount);
- }
- public DoubleProperty getAmountProperty() {
- return amount;
- }
- public String getUnit() {
- return unit.get();
- }
- public void setUnit(String unit) {
- this.unit.set(unit);
- }
- public StringProperty getUnitProperty() {
- return unit;
- }
- public String getIngred() {
- return ingred.get();
- }
- public void setIngred(String ingred) {
- this.ingred.set(ingred);
- }
- public StringProperty getIngredProperty() {
- return ingred;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement