It means that when the data property changes, the "dataChange" event
will be fired.  The data binding subsystem uses that information.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Troy Simpson
Sent: Thursday, September 13, 2007 7:47 AM
To: [email protected]
Subject: [flexcoders] ListItemRenderer [Bindable("dataChange")]

 

 

Within the ListItemRenderer class file there is a section with the
heading "data".  

 

What does the line [Bindable("dataChange")] mean?

The section looks like this:


//----------------------------------
// data
//----------------------------------
/**
* @private
* Storage for the data property.
*/
private var _data:Object;
[Bindable("dataChange")] 
/**
* The implementation of the <code>data</code> property
* as defined by the IDataRenderer interface.
* When set, it stores the value and invalidates the component 
* to trigger a relayout of the component. 
*
* @see mx.core.IDataRenderer
*/
public function get data():Object
{
return _data;
}
/**
* @private
*/
public function set data(value:Object):void
{
_data = value;
invalidateProperties(); 
dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
}
 
Thanks,

-- 
Troy Simpson 

 

Reply via email to