|
Download Sources | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=METHOD) public @interface FlexDefault
Used to define the default value of a property.
It can be declared on the getter method of a property
You can either put a raw value or the keyword "new" to instanciate the property using the constructor of the property type
Exemple :
@FlexDefault("new")
public Person getPerson() {
return _person;
}
Will generates :
private var _person:Person = new Person();
@FlexDefault("-1")
public int getId() {
return _id;
}
Will generates :
private var _id:int = -1;
| Required Element Summary | |
|---|---|
java.lang.String |
value
|
| Element Detail |
|---|
public abstract java.lang.String value
|
FlexGenerator | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||