Class OnComponentValueChangedLoadTrigger
java.lang.Object
io.jmix.flowui.facet.dataloadcoordinator.OnComponentValueChangedLoadTrigger
- All Implemented Interfaces:
DataLoadCoordinator.Trigger
public class OnComponentValueChangedLoadTrigger
extends Object
implements DataLoadCoordinator.Trigger
Implementation of the
DataLoadCoordinator.Trigger interface that triggers data loading
in a DataLoader when the value of a specified UI component changes. The component must
implement the HasValue interface.
This trigger listens for ValueChangeEvent on the specified component and updates the data
loader's parameter with the new value before initiating a data load. It can also handle LIKE clause
formatting for string parameters based on the DataLoadCoordinator.LikeClause configuration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.vaadin.flow.component.HasValue<?,?> protected final DataLoadCoordinator.LikeClauseprotected final DataLoaderprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionOnComponentValueChangedLoadTrigger(DataLoader loader, com.vaadin.flow.component.Component component, String param, DataLoadCoordinator.LikeClause likeClause) -
Method Summary
Modifier and TypeMethodDescriptionReturns theDataLoaderassociated with the trigger.protected voidload()
-
Field Details
-
loader
-
component
protected final com.vaadin.flow.component.HasValue<?,?> component -
param
-
likeClause
-
-
Constructor Details
-
OnComponentValueChangedLoadTrigger
public OnComponentValueChangedLoadTrigger(DataLoader loader, com.vaadin.flow.component.Component component, String param, DataLoadCoordinator.LikeClause likeClause)
-
-
Method Details
-
load
protected void load() -
getLoader
Description copied from interface:DataLoadCoordinator.TriggerReturns theDataLoaderassociated with the trigger.- Specified by:
getLoaderin interfaceDataLoadCoordinator.Trigger- Returns:
- the associated
DataLoader
-