Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package HomePlanner;
- import javafx.beans.property.DoubleProperty;
- import javafx.beans.property.StringProperty;
- import java.time.LocalDate;
- import java.util.Date;
- import java.util.Set;
- import java.util.TreeSet;
- /**
- * Created by mscib on 11.08.2016.
- */
- public class Expenses {
- private String category;
- public String getCategory() {
- return category;
- }
- LocalDate date;
- private String name;
- public String getName() {
- return name;
- }
- private DoubleProperty cost;
- public double getCost() {
- return cost.get();
- }
- public DoubleProperty costProperty() {
- return cost;
- }
- public void setCost(double cost) {
- this.cost.set(cost);
- }
- public Expenses(String cat, String name, double cost,LocalDate date){
- this.date= date;
- category = cat;
- this.name=name;
- setCost(cost);
- }
- }
Add Comment
Please, Sign In to add comment