public class JavaScriptBuilder extends Object implements Serializable
This class must not be used anymore.
| Constructor and Description |
|---|
JavaScriptBuilder()
Deprecated.
|
JavaScriptBuilder(org.apache.wicket.Component component)
Deprecated.
Builds a new instance of
JavaScriptBuilder with the given
Component. |
| Modifier and Type | Method and Description |
|---|---|
JavaScriptBuilder |
$()
Deprecated.
Generates a JavaScript sequence to retreive the component with its
markup id.
|
JavaScriptBuilder |
$(String cssSelector)
Deprecated.
|
JavaScriptBuilder |
addClass(String cssClass)
Deprecated.
|
void |
appendJavaScript()
Deprecated.
Appends the build JavaScript statement to the final response.
|
JavaScriptBuilder |
attr(String attributeKey,
String attributeValue)
Deprecated.
|
void |
bindResponse(org.apache.wicket.markup.html.IHeaderResponse response)
Deprecated.
Binds the given
IHeaderResponse to this statement. |
JavaScriptBuilder |
call(JavaScriptCallable queryCallable)
Deprecated.
Appends the given
JavaScriptCallable's statement to this
statement. |
String |
getDomReadyStatement()
Deprecated.
Returns the build DOM Ready statement as a
String. |
String |
getStatement()
Deprecated.
Returns the build statement as a
String. |
JavaScriptBuilder |
removeAttr(String attributeKey)
Deprecated.
|
JavaScriptBuilder |
removeClass(String cssClass)
Deprecated.
|
JavaScriptBuilder |
toggleClass(String cssClass)
Deprecated.
|
public JavaScriptBuilder(org.apache.wicket.Component component)
JavaScriptBuilder with the given
Component.component - the component on which this statement applies.public JavaScriptBuilder()
public void bindResponse(org.apache.wicket.markup.html.IHeaderResponse response)
IHeaderResponse to this statement. This response
will be used to append JavaScript.response - the IHeaderResponse instance to bind.public JavaScriptBuilder $()
It appends a $('#markupId') JavaScript sequence to the
statement.
public JavaScriptBuilder $(String cssSelector)
public JavaScriptBuilder call(JavaScriptCallable queryCallable)
JavaScriptCallable's statement to this
statement.
It appends a .
JavaScript sequence to this statement.
JavaScriptCallable.statement()
queryCallable - the given JavaScriptCallable to append.public JavaScriptBuilder addClass(String cssClass)
public JavaScriptBuilder removeClass(String cssClass)
public JavaScriptBuilder toggleClass(String cssClass)
public JavaScriptBuilder attr(String attributeKey, String attributeValue)
public JavaScriptBuilder removeAttr(String attributeKey)
public String getStatement()
String.
It will append a ;\n to the whole statement.
public String getDomReadyStatement()
String.public void appendJavaScript()
For non-Ajax purposes, the built JavaScript statement is wrapped in a jQuery "DOM ready" statement.
Copyright © 2009-2012. All Rights Reserved.