Class ButtonAjaxBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.behavior.AbstractAjaxBehavior
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior
com.googlecode.wicket.jquery.ui.widget.dialog.ButtonAjaxBehavior
- All Implemented Interfaces:
Serializable,org.apache.wicket.IComponentAwareEventSink,org.apache.wicket.IRequestListener,org.apache.wicket.markup.html.IComponentAwareHeaderContributor,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
ButtonAjaxPostBehavior
public class ButtonAjaxBehavior
extends com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior
- Author:
- Sebastien Briquet - sebfz1
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classProvides an event object that will be broadcasted by theButtonAjaxBehaviorcallback -
Field Summary
Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
INDICATOR -
Constructor Summary
ConstructorsConstructorDescriptionButtonAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source, DialogButton button) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGets theDialogButtonprotected com.googlecode.wicket.jquery.core.JQueryEventnewEvent()protected com.googlecode.wicket.jquery.core.OptionsGets the newButton'sOptionsto be used on when ajax stopsprotected com.googlecode.wicket.jquery.core.OptionsGets the newButton'sOptionsto be used on clickvoidrenderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response) protected voidupdateAjaxAttributes(org.apache.wicket.ajax.attributes.AjaxRequestAttributes attributes) Methods inherited from class com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior
getCallbackFunction, getCallbackParameters, respondMethods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, onBind, onMethodMismatch, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributesMethods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior
afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbindMethods inherited from class org.apache.wicket.behavior.Behavior
beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTagMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.wicket.IRequestListener
rendersPage
-
Constructor Details
-
ButtonAjaxBehavior
public ButtonAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source, DialogButton button) Constructor- Parameters:
source- theIJQueryAjaxAwarebutton- theDialogButtonto attach to theButtonAjaxBehavior.ClickEvent
-
-
Method Details
-
getButton
Gets theDialogButton- Returns:
- the
DialogButton
-
renderHead
public void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response) - Specified by:
renderHeadin interfaceorg.apache.wicket.markup.html.IComponentAwareHeaderContributor- Overrides:
renderHeadin classorg.apache.wicket.ajax.AbstractDefaultAjaxBehavior
-
updateAjaxAttributes
protected void updateAjaxAttributes(org.apache.wicket.ajax.attributes.AjaxRequestAttributes attributes) - Overrides:
updateAjaxAttributesin classcom.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior
-
newOnClickOptions
protected com.googlecode.wicket.jquery.core.Options newOnClickOptions()Gets the newButton'sOptionsto be used on click- Returns:
- the
Options
-
newOnAjaxStopOptions
protected com.googlecode.wicket.jquery.core.Options newOnAjaxStopOptions()Gets the newButton'sOptionsto be used on when ajax stops- Returns:
- the
Options
-
newEvent
protected com.googlecode.wicket.jquery.core.JQueryEvent newEvent()- Specified by:
newEventin classcom.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior
-