Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lombok javafx properties

I'm trying to use Lombok in combination with JavaFX properties:

@Data
public class Country {
    private SimpleIntegerProperty id = new SimpleIntegerProperty();
    private SimpleStringProperty name = new SimpleStringProperty();
}

This generates getters and setters for the Properties itself:

  • getId(): SimpleIntegerProperty
  • setId(SimpleIntegerProperty id)
  • getName: SimpleStringProperty
  • setName(SimpleStringProperty name)
  • ...

However, I would expect(/like) this in JavaFX:

  • getId(): int
  • setId(int id)
  • getIdProperty(): SimpleIntegerProperty
  • getName(): String
  • setName(String name)
  • getNameProperty(): SimpleStringProperty
  • ...

Is this supported in Lombok? I don't find much information about Lombok in combination with JavaFX (or I must be searching wrong). I'm not really familiar with Lombok yet, so apologies if this is a basic question.

like image 521
Perneel Avatar asked Sep 08 '16 14:09

Perneel


1 Answers

There's no support, see issue 521. I'm afraid, there's nothing beside the issue and an discussion.

like image 67
maaartinus Avatar answered Oct 13 '22 22:10

maaartinus