|
Download Sources | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD})
public @interface FlexBindable
Used to define a bindable property.
It can be declared on class level to define the default behavior for each properties of the class.
It can also be declared on the getter method of a property. This will override the binding defined on the class declaration.
A custom event for the data binding can be speficy with the 'event' attribute.
Exemple :
// indicate that each properties in the class should be bindable
@FlexBindable
public class Person {
private int _id;
private String _name;
public int getId() {
return _id;
}
public void setId(int id) {
_id = id;
}
// the binding of this property will occurs on the "change" event
@FlexBindable(event="change")
public String getName() {
return _name;
}
public void setName(String name) {
_name = name;
}
}
| Optional Element Summary | |
|---|---|
java.lang.String |
event
Used to define the binding event for the property. |
public abstract java.lang.String event
Used to define the binding event for the property.
Optional. The default value is an empty String, which represents a property binding instead of a event binding.>
|
FlexGenerator | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||