org.wicketstuff.jquery.lightbox
Class LightboxBehaviour
java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.behavior.AbstractAjaxBehavior
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
org.wicketstuff.jquery.JQueryBehavior
org.wicketstuff.jquery.lightbox.LightboxBehaviour
- All Implemented Interfaces:
- Serializable, IBehaviorListener, IClusterable, IComponentAwareEventSink, IRequestListener, IComponentAwareHeaderContributor
public class LightboxBehaviour
- extends JQueryBehavior
Adds LightBox hehaviour to the selected component. The default is to look for li's with anchors
in them and create lightbox from the href of the anchors. You can override this by using the
constructor that takes the css selector as an argument
- Author:
- Edvin Syse
- See Also:
- Serialized Form
| Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior |
findIndicatorId, generateCallbackScript, getAjaxCallDecorator, getCallbackScript, getChannel, getChannelName, getFailureScript, getPreconditionScript, getSuccessScript, onRequest, throttleScript |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LightboxBehaviour
public LightboxBehaviour()
LightboxBehaviour
public LightboxBehaviour(String selector)
getOptions
public LightboxOptions getOptions()
getOnReadyScript
protected CharSequence getOnReadyScript()
- Description copied from class:
JQueryBehavior
- to be override by subclass if need to run script when dom is ready. The returned script is
wrapped by caller into <script> tag and the "$(document).ready(function(){...}"
- Overrides:
getOnReadyScript in class JQueryBehavior
- Returns:
- the script to execute when the dom is ready, or null (default)
getSelector
public String getSelector()
renderHead
public void renderHead(Component component,
IHeaderResponse response)
- Specified by:
renderHead in interface IComponentAwareHeaderContributor- Overrides:
renderHead in class JQueryBehavior
onBind
protected void onBind()
- Overrides:
onBind in class AbstractDefaultAjaxBehavior
getLightboxCss
public ResourceReference getLightboxCss()
Copyright © 2013. All Rights Reserved.