akshattandon / projectlombok

Automatically exported from code.google.com/p/projectlombok
0 stars 0 forks source link

Please Create JavaFX property annotation #448

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please create @FXProperty annotation that generates the JavaFX property methods:

e.g. 

@FXProperty
ObjectProperty<Customer> customer = new SimpleObjectProperty<>();

to Generate
---------------------

public Customer getCustomer() {
  return customer.get();
}

public void setCustomer(Customer c) {
  customer.set(c);
}

public ObjectProperty<Customer> customerProperty() {
  return customerProperty;
}

http://docs.oracle.com/javafx/2/binding/jfxpub-binding.htm

Thank you for Lombok project, I really appreaciate it.

Original issue reported on code.google.com by pa...@anahata-it.com.au on 14 Feb 2013 at 3:20

GoogleCodeExporter commented 9 years ago
A good reference that describes possible implementations can be found at:

https://wikis.oracle.com/display/OpenJDK/JavaFX+Property+Architecture

See section "JavaFX Property Cook Book"

According to this document (see near the end of the introduction) Oracle used 
Lombok during initial JavaFX 2 development. Probably that code is still 
somewhere around and can be open-sourced?

Original comment by sim...@bluewin.ch on 27 Feb 2013 at 2:50

GoogleCodeExporter commented 9 years ago
javafx properties are really verbose

Original comment by francesc...@gmail.com on 29 Oct 2013 at 5:50

GoogleCodeExporter commented 9 years ago
Yes, Once you are used to lombok, they do make the code very verbose

Original comment by pa...@anahata-it.com.au on 29 Oct 2013 at 6:06