Package org.wicketstuff.jeeweb.ajax
Class JEEWebGlobalAjaxEvent
java.lang.Object
org.wicketstuff.jeeweb.ajax.JEEWebGlobalAjaxEvent
Wraps the created ajax request target and the page parameters received by the ajax request, to
provide them via event to the current rendered page.
- Author:
- Tobias Soloschenko
-
Constructor Summary
ConstructorsConstructorDescriptionJEEWebGlobalAjaxEvent(AjaxRequestTarget ajaxRequestTarget, PageParameters pageParameters, IRequestParameters postParameters) -
Method Summary
Modifier and TypeMethodDescriptionGets the ajax request target created during the ajax callstatic JEEWebGlobalAjaxEventgetCastedEvent(IEvent<?> event) Gets the event object from the original event.Gets the page parameters received by the ajax callGets the post parameters received by the ajax callvoidsetAjaxRequestTarget(AjaxRequestTarget ajaxRequestTarget) Sets the ajax request target during the ajax callvoidsetPageParameters(PageParameters pageParameters) Sets the page parameter received by the ajax callvoidsetPostParameters(IRequestParameters postParameters) Sets the post parameters during the request call
-
Constructor Details
-
JEEWebGlobalAjaxEvent
public JEEWebGlobalAjaxEvent(AjaxRequestTarget ajaxRequestTarget, PageParameters pageParameters, IRequestParameters postParameters)
-
-
Method Details
-
getAjaxRequestTarget
Gets the ajax request target created during the ajax call- Returns:
- the ajax request target
-
setAjaxRequestTarget
Sets the ajax request target during the ajax call- Parameters:
ajaxRequestTarget- the ajax request target
-
getPageParameters
Gets the page parameters received by the ajax call- Returns:
- the page parameters
-
setPageParameters
Sets the page parameter received by the ajax call- Parameters:
pageParameters- the page parameters
-
getPostParameters
Gets the post parameters received by the ajax call- Returns:
- the post parameters
-
setPostParameters
Sets the post parameters during the request call- Parameters:
postParameters- the post parameters
-
getCastedEvent
Gets the event object from the original event. Only used to make the code a little bit smarter.- Parameters:
event- the event received by the page- Returns:
- the event to get the ajax request target and the parameters from
-