org.odlabs.wiquery.core.events
Class WiQueryEventBehavior

java.lang.Object
  extended by org.apache.wicket.behavior.Behavior
      extended by org.odlabs.wiquery.core.behavior.WiQueryAbstractBehavior
          extended by org.odlabs.wiquery.core.events.WiQueryEventBehavior
All Implemented Interfaces:
Serializable, org.apache.wicket.IClusterable, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.markup.html.IComponentAwareHeaderContributor, IWiQueryPlugin

public class WiQueryEventBehavior
extends WiQueryAbstractBehavior

$Id$

Calls a JavaScript statement when the given Event is triggered.

Since:
0.5
Author:
Lionel Armanet
See Also:
Serialized Form

Constructor Summary
WiQueryEventBehavior(Event event)
          Builds a new instance of WiQueryEventBehavior.
 
Method Summary
 JsStatement statement()
          Returns the main JsStatement used to create the plugin.
 
Methods inherited from class org.odlabs.wiquery.core.behavior.WiQueryAbstractBehavior
bind, getComponent, onBind
 
Methods inherited from class org.apache.wicket.behavior.Behavior
afterRender, beforeRender, canCallListenerInterface, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onComponentTag, onConfigure, onEvent, onException, renderHead, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WiQueryEventBehavior

public WiQueryEventBehavior(Event event)
Builds a new instance of WiQueryEventBehavior.

Parameters:
event - the Event triggering the JavaScript statement.
Method Detail

statement

public JsStatement statement()
Description copied from interface: IWiQueryPlugin
Returns the main JsStatement used to create the plugin.

Specified by:
statement in interface IWiQueryPlugin
Specified by:
statement in class WiQueryAbstractBehavior
Returns:
The JsStatement corresponding to this component.


Copyright © 2012. All Rights Reserved.