public class CmsScriptCallbackHelper extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected com.google.gwt.core.client.JavaScriptObject |
m_arguments
The stored arguments.
|
Constructor and Description |
---|
CmsScriptCallbackHelper() |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.core.client.JavaScriptObject |
createCallback()
Creates a native JS function which, when executed, calls this object's run() method.
|
void |
installCallbackOnWindow(java.lang.String name)
Installs the Javascript function generated by this helper as a global function, i.e.
|
void |
run()
This method is called by the callback created by createCallback().
|
void |
setArguments(com.google.gwt.core.client.JavaScriptObject arguments)
Sets the function arguments so they can be accessed later in the run() method.
|
protected com.google.gwt.core.client.JavaScriptObject m_arguments
public CmsScriptCallbackHelper()
public com.google.gwt.core.client.JavaScriptObject createCallback()
public void installCallbackOnWindow(java.lang.String name)
name
- the function namepublic void run()
public void setArguments(com.google.gwt.core.client.JavaScriptObject arguments)
arguments
- the function arguments