Class JsScopeContext
- java.lang.Object
-
- org.wicketstuff.wiquery.core.javascript.JsScopeContext
-
- All Implemented Interfaces:
java.io.Serializable
public class JsScopeContext extends java.lang.Object implements java.io.Serializable$Id: JsScopeContext.java 1714 2011-09-22 20:38:30Z hielke.hoeve $JsScopeContextdefines the followingJsScopecontents:- Since:
- 0.7
- Author:
- Lionel Armanet
- See Also:
JsScope,JsStatement, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JsScopeContext(java.lang.String... scopeVariables)Creates a newJsScopeContextwith the given arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsStatementappend(java.lang.CharSequence javascriptCode)Creates a newJsStatementand append the given JavaScript code in this statement.JsStatementself()Creates a newJsStatementand append the "this" keyword in this statement.JsStatementvar(java.lang.String variable)Creates a newJsStatementand append the given variable name in this statement.
-
-
-
Constructor Detail
-
JsScopeContext
public JsScopeContext(java.lang.String... scopeVariables)
Creates a newJsScopeContextwith the given arguments.
-
-
Method Detail
-
self
public JsStatement self()
Creates a newJsStatementand append the "this" keyword in this statement.- Returns:
- the created
JsStatement.
-
var
public JsStatement var(java.lang.String variable)
Creates a newJsStatementand append the given variable name in this statement.- Returns:
- the created
JsStatement.
-
append
public JsStatement append(java.lang.CharSequence javascriptCode)
Creates a newJsStatementand append the given JavaScript code in this statement.- Returns:
- the created
JsStatement.
-
-