public class WiQueryEventBehavior extends WiQueryAbstractBehavior
Calls a JavaScript statement when the given Event is triggered.
| Constructor and Description |
|---|
WiQueryEventBehavior(Event event)
Builds a new instance of
WiQueryEventBehavior. |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(org.apache.wicket.Component component) |
void |
contribute(WiQueryResourceManager wiQueryResourceManager)
Declares resources (JavaScript and CSS files) to import.
|
JsStatement |
statement()
Returns the main
JsStatement used to create the plugin. |
getComponentpublic WiQueryEventBehavior(Event event)
WiQueryEventBehavior.event - the Event triggering the JavaScript statement.public void bind(org.apache.wicket.Component component)
bind in interface org.apache.wicket.behavior.IBehaviorbind in class WiQueryAbstractBehaviorWiQueryAbstractBehavior.bind(org.apache.wicket.Component)public void contribute(WiQueryResourceManager wiQueryResourceManager)
contribute in interface IWiQueryPlugincontribute in class WiQueryAbstractBehaviorwiQueryResourceManager - The WiQueryResourceManager instance managing this
component resources.WiQueryAbstractBehavior.contribute(org.odlabs.wiquery.core.commons.WiQueryResourceManager)public JsStatement statement()
JsStatement used to create the plugin.statement in interface IWiQueryPluginstatement in class WiQueryAbstractBehaviorJsStatement corresponding to this component.WiQueryAbstractBehavior.statement()Copyright © 2009-2012. All Rights Reserved.