Package de.xima.fc.gui.common.model.push
Class AjaxCallPushData
java.lang.Object
de.xima.fc.gui.common.model.push.AjaxCallPushData
- All Implemented Interfaces:
Serializable
POJO data model for the push event beans. Represents the data for triggering an AJAX call on the client.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic AjaxCallPushData.Builder
builder()
int
getDelay()
boolean
isAsync()
boolean
isGlobal()
boolean
boolean
-
Method Details
-
getActionListener
- Returns:
- Action listener that should be invoked. Requires that the default
source
is used.
-
getDelay
public int getDelay()- Returns:
- Optional delay for the AJAX call. When not specified, no delay is applied.
-
getFormId
- Returns:
Client ID
of the form to use for submitting the AJAX call. When not specified, a fallback form is used.
-
getOncomplete
- Returns:
- A JavaScript expression that evaluates to a function that is invoked when the AJAX request completes.
-
getOnerror
- Returns:
- A JavaScript expression that evaluates to a function that is invoked when the AJAX request completes with an error.
-
getOnstart
- Returns:
- A JavaScript expression that evaluates to a function that is invoked when the AJAX request starts.
-
getOnsuccess
- Returns:
- A JavaScript expression that evaluates to a function that is invoked when the AJAX request completes successfully.
-
getParams
- Returns:
- Optional parameters to send with the AJAX request. Each key-value pairs corresponds to a PrimeFaces.ajax.RequestParameter.
-
getProcess
- Returns:
- 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.
-
getSource
- Returns:
Client ID
of the source element that triggered the AJAX request. When not specified, a fallback component is used.
-
getUpdate
- Returns:
- 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.
-
isAsync
public boolean isAsync()- Returns:
- Whether the AJAX call should be queued to ensure a bean's thread safety.
-
isGlobal
public boolean isGlobal()- Returns:
- Whether the AJAX call should trigger global
AjaxStatus
handlers. Defaults totrue
.
-
isIgnoreAutoUpdate
public boolean isIgnoreAutoUpdate()- Returns:
- Whether the AJAX call should not include auto updates of components.
-
isPartialSubmit
public boolean isPartialSubmit()- Returns:
- Whether the AJAX call should only submit data that is also processed.
-
builder
- Returns:
- A new builder for an
AjaxCallPushData
with the defaults.
-