You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public String getTest(){
return test.get();
}
public void setTest(String test){
test.set(test);
}
public StringProperty testProperty(){
return test;
}
it would be nice to have that for all implementors of the Property Interface
An additionaly usefull thing would be to combine these three Annotations in @properties
I hope you could do that. I love lombok and don't want to go back to writing all my getters & setters by hand just because of using Properties.
The text was updated successfully, but these errors were encountered:
Actually many people asked to create various annotation like Getter/Setter, but more functional. May be make any opportunity describe how to do it get or set? something like this :
enum MyEnum {A, B, C}
public class Test {
@Setter(MyEnumSetter.class)
private MyEnum myEnum;
public static void main(String[] args) {
new Test().setMyEnum("A");
}
}
public class MyEnumSetter implements SetterHandle<Test, String> {
public void handleSetter(Test obj, Field myEnum, String arg) {
myEnum.set(obj, MyEnum.valueOf(arg));
}
}
interface SetterHandle<O, A> {
void handleSetter(O obj, Field field, A arg);
}
Hello I would like to have some additional Annotations for JavaFX8 Properties.
Something like
which generates
it would be nice to have that for all implementors of the Property Interface
An additionaly usefull thing would be to combine these three Annotations in @properties
I hope you could do that. I love lombok and don't want to go back to writing all my getters & setters by hand just because of using Properties.
The text was updated successfully, but these errors were encountered: