Package de.xima.fc.gui.common.model.push
Class AjaxCallPushData.Builder
java.lang.Object
de.xima.fc.gui.common.model.push.AjaxCallPushData.Builder
- All Implemented Interfaces:
org.apache.commons.lang3.builder.Builder<AjaxCallPushData>
- Enclosing class:
- AjaxCallPushData
public static class AjaxCallPushData.Builder
extends Object
implements org.apache.commons.lang3.builder.Builder<AjaxCallPushData>
Simple builder for creating a
AjaxCallPushData
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionListener
(String actionListener) appendProcess
(String process) appendUpdate
(String update) async
(boolean async) build()
delay
(int delay) global
(boolean global) ignoreAutoUpdate
(boolean ignoreAutoUpdate) oncomplete
(String oncomplete) params
(Map<String, Serializable> params) partialSubmit
(boolean partialSubmit)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actionListener
- Parameters:
actionListener
- Action listener that should be invoked, e.g.myBean.someMethod(false)
. For this to work, you need to use the defaultsource(String)
(which is used automatically if you do not specify any source).- Returns:
- this builder for chaining.
-
appendProcess
- Parameters:
process
- Search expression for the components to process in the AJAX call. This is added to the existing search expression. Please note that this search expression is resolved on the client, which may not support the full range of search expressions.- Returns:
- this builder for chaining.
-
appendUpdate
- Parameters:
update
- Search expression for the components to update in the AJAX call. This is added to the existing search expression. Please note that this search expression is resolved on the client, which may not support the full range of search expressions.- Returns:
- this builder for chaining.
-
async
- Parameters:
async
- Whether the AJAX call should be queued to ensure a bean's thread safety.- Returns:
- this builder for chaining.
-
build
- Specified by:
build
in interfaceorg.apache.commons.lang3.builder.Builder<AjaxCallPushData>
-
delay
- Parameters:
delay
- Optional delay for the AJAX call. When not specified, no delay is applied.- Returns:
- this builder for chaining.
-
formId
- Parameters:
formId
-Client ID
of the form to use for submitting the AJAX call. When not specified, a fallback form is used.- Returns:
- this builder for chaining.
-
global
- Parameters:
global
- Whether the AJAX call should trigger globalAjaxStatus
handlers. Defaults totrue
.- Returns:
- this builder for chaining.
-
ignoreAutoUpdate
- Parameters:
ignoreAutoUpdate
- Whether the AJAX call should not include auto updates of components.- Returns:
- this builder for chaining.
-
oncomplete
- Parameters:
oncomplete
- A JavaScript function body that is invoked when the AJAX request completes. The function body is evaluated inside a function with the same parameters as the standard PrimeFacesoncomplete
handler.- Returns:
- this builder for chaining.
-
onerror
- Parameters:
onerror
- A JavaScript function body that is invoked when the AJAX request completes with an error. The function body is evaluated inside a function with the same parameters as the standard PrimeFacesonerror
handler.- Returns:
- this builder for chaining.
-
onstart
- Parameters:
onstart
- A JavaScript function body that is invoked when the AJAX request starts. The function body is evaluated inside a function with the same parameters as the standard PrimeFacesonstart
handler.- Returns:
- this builder for chaining.
-
onsuccess
- Parameters:
onsuccess
- A JavaScript function body that is invoked when the AJAX request completes. The function body is evaluated inside a function with the same parameters as the standard PrimeFacesonsuccess
handler. completes successfully.- Returns:
- this builder for chaining.
-
params
- Parameters:
params
- Optional parameters to send with the AJAX request. Each key-value pairs corresponds to a PrimeFaces.ajax.RequestParameter.- Returns:
- this builder for chaining.
-
partialSubmit
- Parameters:
partialSubmit
- Whether the AJAX call should only submit data that is also processed. Defaults tofalse
.- Returns:
- this builder for chaining.
-
process
- Parameters:
process
- Search expression for the components to process in the AJAX call. Please note that this search expression is resolved on the client, which may not support the full range of search expressions.- Returns:
- this builder for chaining.
-
source
- Parameters:
source
-Client ID
of the source element that triggered the AJAX request. When not specified, a fallback component is used.- Returns:
- this builder for chaining.
-
update
- Parameters:
update
- Search expression for the components to update in the AJAX call. Please note that this search expression is resolved on the client, which may not support the full range of search expressions.- Returns:
- this builder for chaining.
-