org.wicketstuff.jquery.ajaxbackbutton
Class HistoryAjaxBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.behavior.AbstractAjaxBehavior
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
org.wicketstuff.jquery.ajaxbackbutton.HistoryAjaxBehavior
- All Implemented Interfaces:
- Serializable, IBehaviorListener, IClusterable, IComponentAwareEventSink, IRequestListener, IComponentAwareHeaderContributor
public abstract class HistoryAjaxBehavior
- extends AbstractDefaultAjaxBehavior
- Author:
- martin-g
- See Also:
- Serialized Form
| Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior |
findIndicatorId, generateCallbackScript, getAjaxCallDecorator, getCallbackScript, getChannel, getChannelName, getFailureScript, getPreconditionScript, getSuccessScript, onBind, onRequest, throttleScript |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HistoryAjaxBehavior
public HistoryAjaxBehavior()
getCallbackUrl
public final CharSequence getCallbackUrl()
- Overrides:
getCallbackUrl in class AbstractAjaxBehavior
renderHead
public void renderHead(Component component,
IHeaderResponse response)
- Specified by:
renderHead in interface IComponentAwareHeaderContributor- Overrides:
renderHead in class AbstractDefaultAjaxBehavior
respond
protected void respond(AjaxRequestTarget target)
- Specified by:
respond in class AbstractDefaultAjaxBehavior
onAjaxHistoryEvent
public abstract void onAjaxHistoryEvent(AjaxRequestTarget target,
String componentId)
- A callback method which will be invoked when the user presses the back/forward buttons of the
browser
- Parameters:
target - the current request targetcomponentId - the wicket:id of the component which had triggered the previous Ajax history entry
registerAjaxEvent
public void registerAjaxEvent(AjaxRequestTarget target,
Component component)
- Registers a new entry in the history if this request is not triggered by back/forward buttons
- Parameters:
target - the current request targetcomponent - the component which triggered this Ajax request
Copyright © 2013. All Rights Reserved.