Download Sources

com.liguorien.flex.generator
Annotation Type FlexBindable


@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;
        }
    }
 

Version:
0.2
Author:
Nicolas Désy

Optional Element Summary
 java.lang.String event
          Used to define the binding event for the property.
 

event

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.

Default:
""

FlexGenerator

Copyright 2006 Nicolas Désy. All rights reserved.