
...
public class BasicHorizontalSlider extends HSlider
{
...
}
}
Note:
Visual components must inherit from UIComponent.
In addition, if you want to include connection refresh and status options in your custom connection
component, you must extend Adobe Flex class EventDispatcher and implement the IConnection
interface provided in the Dashboards Component SDK Framework. You also must import any necessary
Adobe Flex and Xcelsius classes that your connection extends and implements.
Note:
In Dashboards, connection refresh and status options are configured in the Usage tab on the Data
Manager. For more information about using these options, see the "To set refresh options" and "To
create load and idle messages" sections in the
SAP BusinessObjects Dashboards User Guide
.
For example, the following code sample creates a package for an RSS connector with a trigger:
package com.businessobjects.xcelsius.sdk.samples
{
import flash.events.Event;
import flash.events.EventDispatcher;
import flash.events.IEventDispatcher;
import xcelsius.rpc.IConnection;
import xcelsius.rpc.TriggerType;
...
public class RSSConnectorWithTrigger extends EventDispatcher implements IConnection
{
...
}
}
Note:
Every connection that implements IConnection must define all properties used in the Usage tab of
the Data Manager. It must also overwrite the trigger() function that defines any events the connection
must handle. When the connection finishes loading the data, it then needs to raise a COMPLETE event.
For examples of creating source files, see the following sample add-on components:
Note:
For information about using the Sample add-on files, see Installing the Sample Add-On Components
Sample file/documnentExample
The MXMLHorizontalSlider source code.Creating components with MXML
For more information, see
Tutorial 1 Creating a
basic horizontal slider
available with the SAP
BusinessObjects Dashboards Component SDK
documentation.
Creating a component with ActionScript
2013-05-0613
Creating Adobe Flex Projects
Comentarios a estos manuales