Class Index | File Index

Classes


Class Ozone.launcher.WidgetLauncherUtils


Defined in: WidgetLauncher.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Utility functions for a widget that has been launched
Method Summary
Method Attributes Method Name and Description
<static>  
Ozone.launcher.WidgetLauncherUtils.getLaunchConfigData()
gets initial launch config data for this widget if it was just launched
Class Detail
Ozone.launcher.WidgetLauncherUtils()
Utility functions for a widget that has been launched
Method Detail
<static> {Object} Ozone.launcher.WidgetLauncherUtils.getLaunchConfigData()
gets initial launch config data for this widget if it was just launched
var launchConfig = Ozone.launcher.WidgetLauncherUtils.getLaunchConfigData();
if (launchConfig != null) {
  var data = Ozone.util.parseJson(launchConfig);  //in this example the data object has two fields: channel and message
  if (data != null) {
      //do something with the data
      scope.subscribeToChannel(data.channel);
      scope.addToGrid(null,data.message,data.channel);
  }
}
Returns:
{Object} data object which contains initial information for the widget

Documentation generated by JsDoc Toolkit 2.3.2 on Fri Oct 05 2012 16:51:05 GMT-0400 (EDT)