Class OnContainerItemChangedLoadTrigger
java.lang.Object
io.jmix.flowui.facet.dataloadcoordinator.OnContainerItemChangedLoadTrigger
- All Implemented Interfaces:
DataLoadCoordinator.Trigger
public class OnContainerItemChangedLoadTrigger
extends Object
implements DataLoadCoordinator.Trigger
This class implements a load trigger for a
DataLoadCoordinator.
It is responsible for triggering data loading into an associated DataLoader
whenever the item in a bound InstanceContainer changes.
The class listens to InstanceContainer.ItemChangeEvent events from the attached container
and ensures that the corresponding DataLoader reloads data by updating
the specified parameter with the current item from the container.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final InstanceContainer<?>protected final DataLoaderprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionOnContainerItemChangedLoadTrigger(DataLoader loader, InstanceContainer<?> container, String param) -
Method Summary
Modifier and TypeMethodDescriptionReturns theDataLoaderassociated with the trigger.protected voidload()
-
Field Details
-
loader
-
container
-
param
-
-
Constructor Details
-
OnContainerItemChangedLoadTrigger
public OnContainerItemChangedLoadTrigger(DataLoader loader, InstanceContainer<?> container, String param)
-
-
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
-