| java.lang.Object org.wings.script.JavaScriptListener org.wings.script.JavaScriptDOMListener
All known Subclasses: org.wings.script.PopupListener,
JavaScriptDOMListener | public class JavaScriptDOMListener extends JavaScriptListener (Code) | | Specialized ScriptListener for DOM events. The original JavaScriptListener
uses inline events (e.g. ), this one the events of
the DOM.
author: Christian Schyma |
Method Summary | |
public String | getScript() Returns executable code to initialize the JavaScript listener for the
given component. |
JavaScriptDOMListener | public JavaScriptDOMListener(String event, String code, SComponent component)(Code) | | Parameters: event - one of JavaScriptDOMEvent (e.g. JavaScriptDOMEvent.ON_CLICK) to act on Parameters: code - callback function fired on event Parameters: component - the component this listener is associated with |
JavaScriptDOMListener | public JavaScriptDOMListener(String event, String code, String customObject, SComponent component)(Code) | | Parameters: event - one of JavaScriptDOMEvent (e.g. JavaScriptDOMEvent.ON_CLICK) to act on Parameters: code - callback function fired on event Parameters: customObject - object that is used for the execution scope (so it becomes "this" in the callback) instead ofthe default execution scope of the element the event was fired upon Parameters: component - the component this listener is associated with |
getScript | public String getScript()(Code) | | Returns executable code to initialize the JavaScript listener for the
given component.
init code |
|
|