Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

An infinit.e widget is a flex module that gets run inside a window in the infinit.e application. Image Removed

Image Added

The Infinit.e Webpage handles all interactions with the window such as moving, dragging, changing size, hiding/showing, and data transfer.  You are responsible for handling the content inside the widget.

Note

The plugin sandbox application (InfininteTestApplication.mxml) displays widgets inside a movable/resizable window.  This window is not present when deployed in Infinit.e and is only for testing your widget at different window sizes.

A widget must implement the com.ikanow.infinit.e.widget.library.widget.IWidget interface which is included in the infinit.e.widget.library.swc library.  This involves implementing the following functions: onInit(IWidgetContext), onReceiveNewQuery(), onReceiveNewFilter(), and onParentResize(Number,Number).  The first 3 functions are for data transfer while the last is used for resizing the content you create.

...

  • onLoadWidgetOptions(widgetOptions:WidgetSaveObject) - This function restores the widget state saved by the above callback.  Any json object stored using onSaveWidgetOptions will be returned here (this can include a community save object)
Advanced
  • supportedExportFormats() - This function lets developers return an array collection of strings that appears in the widget's context menu. If one of these is selected by the user, onGenerateExportData (see below) is called back with the "format" parameter set to whichever string was selected.

...