|
lombok-pg - | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||
@Target(value={FIELD,TYPE})
@Retention(value=SOURCE)
public @interface BoundSetterCreates a "bound" setter for an annotated field.
Before:
public class Mountain {
@BoundSetter
private String name;
}
After:
public class Mountain {
public static final String PROP_NAME = "name";
private String name;
public void setName(String name) {
String oldValue = this.name;
this.name = name;
getPropertySupport().firePropertyChange(PROP_NAME, oldValue, name);
}
}
| Optional Element Summary | |
|---|---|
boolean |
throwVetoException
|
lombok.AccessLevel |
value
If you want your setter to be non-public, you can specify an alternate access level here. |
boolean |
vetoable
When true, it indicates that bound properties should be a constrained properties according to the JavaBeans spec and therefore subject to listeners vetoing the property change. |
public abstract lombok.AccessLevel value
public abstract boolean vetoable
public abstract boolean throwVetoException
|
lombok-pg - | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||