org.odlabs.wiquery.core.javascript
Class JsScopeEvent

java.lang.Object
  extended by org.odlabs.wiquery.core.javascript.JsScope
      extended by org.odlabs.wiquery.core.javascript.JsScopeEvent
All Implemented Interfaces:
Serializable

public abstract class JsScopeEvent
extends JsScope

$Id$ This class represent a JsScope event for the JQuery scope event The javascript representation will be like this:

function(event) { ... }

Since:
1.0.2
Author:
Julien Roche
See Also:
Serialized Form

Constructor Summary
JsScopeEvent()
          Default constructor
 
Method Summary
static JsScopeEvent quickScope(CharSequence javascriptCode)
          Creates a default JsScopeEvent to execute the given statement.
static JsScopeEvent quickScope(JsStatement jsStatement)
          Creates a default JsScopeEvent to execute the given statement.
 
Methods inherited from class org.odlabs.wiquery.core.javascript.JsScope
execute, render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsScopeEvent

public JsScopeEvent()
Default constructor

Method Detail

quickScope

public static JsScopeEvent quickScope(CharSequence javascriptCode)
Creates a default JsScopeEvent to execute the given statement.

Parameters:
javascriptCode - the JavaScript statement to execute with the scope.
Returns:
the created JsScopeEvent.

quickScope

public static JsScopeEvent quickScope(JsStatement jsStatement)
Creates a default JsScopeEvent to execute the given statement.

Parameters:
jsStatement - the JavaScript statement to execute with the scope.
Returns:
the created JsScopeEvent.


Copyright © 2012. All Rights Reserved.