Class OnViewEventLoadTrigger
java.lang.Object
io.jmix.flowui.facet.dataloadcoordinator.OnViewEventLoadTrigger
- All Implemented Interfaces:
DataLoadCoordinator.Trigger
Implementation of the
DataLoadCoordinator.Trigger interface.
It registers an event listener on a specified view's event and invokes the associated
DataLoader when the event occurs, triggering data loading operations.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOnViewEventLoadTrigger(View<?> view, ReflectionCacheManager reflectionCacheManager, DataLoader loader, Class<?> eventClass) -
Method Summary
Modifier and TypeMethodDescriptionReturns theDataLoaderassociated with the trigger.protected voidload()
-
Field Details
-
loader
-
-
Constructor Details
-
OnViewEventLoadTrigger
public OnViewEventLoadTrigger(View<?> view, ReflectionCacheManager reflectionCacheManager, DataLoader loader, Class<?> eventClass)
-
-
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
-