
Note:
For an MXML file, add the CxInspectableList metadata in an <mx:Metadata> tag.
For example, to restrict the list of properties to title and showTitle for the BasicHorizontal
Slider, add the following metadata to your source code:
package com.businessobjects.xcelsius.sdk.samples
{
...
[CxInspectableList ("title", "showTitle")]
public class BasicHorizontalSlider extends HSlider
{
...
}
}
For an MXML file, use the following format:
<mx:Metadata>
[CxInspectableList ("title", "showTitle")]
</mx:Metadata>
<mx:Script>
<![CDATA[
...
]]>
</mx:Script>
11.2 Binding properties to the spreadsheet
In the default property sheet, each property in the grid that has a getter or setter function can be bound
to a cell or range of cells in the spreadsheet using the Bind button.
Note:
If multiple cells are selected for a property that is not an Array then only the first cell in the range is
used when the range value changes.
The effect of changing a property value depends on whether the property has a getter function, a setter
function, or both:
• Getter function only
When the property changes the value is written to the spreadsheet range. By default, you cannot
declare a getter without a setter to be bindable. You have to be explicit and declare the property
Changed event name in the Bindable tag and then notify any listeners when the property changes
using dispatchEvent.
For example:
[Bindable("propertyChange")]
public function get value():Number
{
...
}
/**
* Example of how to notify when the
2013-05-0636
Appendix A: Dashboards Default Property Sheet API Reference
Comentarios a estos manuales