Package org.apache.wicket.ajax
Class AjaxUtils
- java.lang.Object
-
- org.apache.wicket.ajax.AjaxUtils
-
-
Constructor Summary
Constructors Constructor Description AjaxUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
executeIfAjax(org.danekja.java.util.function.serializable.SerializableConsumer<AjaxRequestTarget> ajaxAction)
Runs action if current request is of type "AJAX".static void
executeIfAjaxOrWebSockets(org.danekja.java.util.function.serializable.SerializableConsumer<IPartialPageRequestHandler> ajaxAction)
Runs action if current request is of type "AJAX" or a Websockets request.
-
-
-
Constructor Detail
-
AjaxUtils
public AjaxUtils()
-
-
Method Detail
-
executeIfAjax
public static void executeIfAjax(org.danekja.java.util.function.serializable.SerializableConsumer<AjaxRequestTarget> ajaxAction)
Runs action if current request is of type "AJAX". Otherwise, nothing is done.- Parameters:
ajaxAction
- The action to run aSerializableConsumer
-
executeIfAjaxOrWebSockets
public static void executeIfAjaxOrWebSockets(org.danekja.java.util.function.serializable.SerializableConsumer<IPartialPageRequestHandler> ajaxAction)
Runs action if current request is of type "AJAX" or a Websockets request. Otherwise, nothing is done.- Parameters:
ajaxAction
- The action to run aSerializableConsumer
-
-