|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public IWidgetWrapper
IWidgetWrapper interface represents a runtime instance of an iWidget on the page. Information provided by the IWidgetWrapper is an aggregation of definition level data and instance level data. To get desriptive data that's specific to instance level and definition level. It should use Provider api that's implemented by IWidgetDefinition or IWidgetIstance.
Method Summary | |
---|---|
com.ibm.mashups.enabler.Deferred |
getIWidgetDefinition()
This method returns iWidgetDefinition of this runtime instance. |
void |
setIWidgetDefinition(IWidgetDefinition widgetDefinition)
Sets the iWidgetDefinition for this runtime instance |
IWidgetInstance |
getIWidgetInstance()
This method returns iWidgetInstance which contains all the descriptive data for this iWidget instance |
com.ibm.mashups.enabler.Deferred |
getMarkup()
This method returns the a clone of the content of the widget as it is inside of the DOM. |
Boolean |
isLoaded()
This method returns true if an iwidget instance is already loaded on the page dom. |
Boolean |
isStandalone()
This method returns true if an iwidget instance is standalone on the page. |
void |
doRender()
This method displays the widgets on the page if widget has not been displayed yet. |
Methods inherited from interface com.ibm.mashups.iwidget.widget.WireProvider |
---|
getWires |
Methods inherited from interface com.ibm.mashups.iwidget.widget.EventProvider |
---|
getWidgetPublishedEvents, getWidgetHandledEvents, getPublicEvent |
Method Detail |
---|
com.ibm.mashups.enabler.Deferred getIWidgetDefinition()
var deferred = widgetWrapper.getIWidgetDefinition();
deferred.setFinishedCallback(callback,parameters);
deferred.start(true);
resource
- IWidgetDefinition object statusCode
- the overall HTTP status,code of the action (the highest status code of the involved operations).params
- the parameters passed into the callback
IWidgetDefinition
void setIWidgetDefinition(IWidgetDefinition widgetDefinition)
widgetDefinition
-
IWidgetDefinition to use for this runtime instance. Must not be null.IWidgetInstance getIWidgetInstance()
com.ibm.mashups.enabler.Deferred getMarkup()
_onGetMarkup
in your widgets JavaScript file. This method, as part of the iScope, will always be called before the actual
Boolean isLoaded()
Boolean isStandalone()
void doRender()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |