Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add @Property and @FXProperty annotations #1614

Closed
claudio-rosati opened this issue Mar 16, 2018 · 2 comments
Closed

Add @Property and @FXProperty annotations #1614

claudio-rosati opened this issue Mar 16, 2018 · 2 comments

Comments

@claudio-rosati
Copy link

claudio-rosati commented Mar 16, 2018

Add a single annotation that integrate all the aspects of a java property, something similar to the following (asterisks used for default values):

@Property( 
    getter="*true*/false", 
    setter="*true*/false", 
    indexed="true/*false*",
    bound="true/*false*",
    constrained="true/*false*"
)

That annotation should build getter, setter, property and vetoable change listeners, final static PROPERTY_ field, and all the boilerplate code according to the annotation attributes (somehow similar to what the NetBeans Add Property command does). A @Properties annotation with similar parameters could be provided to annotate a class.

Similarly for us JavaFX developer the following annotation will be as useful as the previous one:

@FXProperty ( style = FXProperty.Style.BASIC )

Where styles are the ones described in the JavaFX Property Cook Book (with possibly more annotation attributes if required by some styles).

That would be much appreciated.

@nlisker
Copy link

nlisker commented Apr 7, 2019

Looks like a duplicate of #1222.

@rspilker
Copy link
Collaborator

rspilker commented May 21, 2019

Duplicate of #521

@rspilker rspilker marked this as a duplicate of #521 May 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants