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 code generation for property/getter/setter methods for JavaFX properties #7364

Open
PavelTurk opened this issue May 7, 2024 · 0 comments
Labels
kind:feature A feature request needs:triage Requires attention from one of the committers

Comments

@PavelTurk
Copy link

Description

JavaFX has its own naming convention for working with properties. For example, for string property

private StringProperty test = new SimpleStringProperty();

the following methods are required:

public StringProperty testProperty() {
    return this.test;
}

public String getTest() {
    return this.test.get();
}

public void setTest(String test) {
     this.test.set(test);
}

As it is seen getters and setter are different from standard Java getters and setters. Besides, the type of them must be resolved from property (for example, from ReadOnlyObjectWrapper).

Currently NB doesn't support code generation for JavaFX properties (ALT+INS) so I suggest to add it.

Use case/motivation

It is very boring to write these methods manually for JavaFX projects.

Related issues

No response

Are you willing to submit a pull request?

No

@PavelTurk PavelTurk added kind:feature A feature request needs:triage Requires attention from one of the committers labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:feature A feature request needs:triage Requires attention from one of the committers
Projects
None yet
Development

No branches or pull requests

1 participant