MACROMEDIA FLEX-CREATING ADVANCED COMPONENTS Uživatelský manuál Strana 41

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 52
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 40
Appendix B: Custom Property Sheet API Reference
Although you can use the default property sheet to get visual components working quickly in Xclesius,
to provide the best user experience, you can create a customer property sheet for your add-on. Custom
connections cannot use the default property sheet, so you must create a custom property sheet for
connection add-ons.
When you build a custom property sheet, you have full control over the layout and the properties available
for users to view, edit, and bind to the spreadsheet.
Note:
Only simple data types are supported including Object, Number and Array.
12.1 High-level steps for creating custom property sheets
This section provides a high-level description for each step required to create a custom property sheet.
For a walkthrough on creating a custom property sheet tht includes more details for each steps, see
the
SAP BusinessObjects Dashboards SDK Tutorial 4
available with your Dashboards SDK
documentation.
To see an example custom property sheet for a visual component, refer to the CustomPropSheetHo
rizontalSlider sample add-on component.
1.
Create an Adobe Flex project for your custom property sheet. You can use the top-level application
MXML to create your property sheet..
2.
Drag and drop Adobe Flex MXML visual components to create your custom property sheet user
interface.
3.
Create an instance of the custom property sheet proxy (xcelsius.propertySheets.impl.Prop
ertySheetExternalProxy) that allows communication between the custom property sheet and
Dashboards.
For example:
import xcelsius.propertySheets.impl.PropertySheetExternalProxy;
import xcelsius.propertySheets.interfaces.IPropertySheetProxy;
// Create an instance of the proxy between the custom property sheet and Dashboards.
protected var proxy:IPropertySheetProxy = new PropertySheetExternalProxy();
4.
The custom property sheet loads every time the user selects the component or the connection to
view its properties in Dashboards. Add in initialization ActionScript code to initialize the custom
property sheet when it is loaded and to notify Dashboards (via the proxy) when the custom property
sheet has finished loading.
2013-05-0641
Appendix B: Custom Property Sheet API Reference
Zobrazit stránku 40
1 2 ... 36 37 38 39 40 41 42 43 44 45 46 ... 51 52

Komentáře k této Příručce

Žádné komentáře