|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WidgetExtension
Interface to allow 3rd party JavaScript extensions to be registered with a widget. This interface is used by the Web Component Pack to add extensions to the Script Engine.
Method Summary | ||
---|---|---|
|
String[] |
getFeatureList()
Retrieves a listing of all the features available in this extension. |
|
void |
loadFeature(String feature,
String version,
Document doc,
ScriptEngine scriptEngine)
Loads the requested feature (if it exists in the extension) into the ScriptEngine. |
|
void |
register(WidgetConfig widgetConfig,
BrowserField browserField)
Registers the extension - information about the widget is passed to the extension. |
|
void |
unloadFeatures(Document doc)
Unloads all the features associated with the document. |
Method Detail |
---|
void register(WidgetConfig widgetConfig, BrowserField browserField)
widgetConfig
- Configuration info for the widgetvoid loadFeature(String feature, String version, Document doc, ScriptEngine scriptEngine) throws Exception
feature
- The feature to be loaded.version
- The version requested to load.doc
- The document associated with the script engine.scriptEngine
- The ScriptEngine to add the feature to.
Exception
void unloadFeatures(Document doc)
doc
- The document that was used to load the features.String[] getFeatureList()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal