Class AbstractOnEventLoadTrigger
java.lang.Object
io.jmix.flowui.facet.dataloadcoordinator.AbstractOnEventLoadTrigger
- All Implemented Interfaces:
DataLoadCoordinator.Trigger
- Direct Known Subclasses:
OnFragmentEventLoadTrigger,OnViewEventLoadTrigger
public abstract class AbstractOnEventLoadTrigger
extends Object
implements DataLoadCoordinator.Trigger
An abstract implementation of the
DataLoadCoordinator.Trigger interface. It registers an event listener on a
specified FacetOwner's event and invokes the associated DataLoader when the event occurs,
triggering data loading operations.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractOnEventLoadTrigger(FacetOwner owner, ReflectionCacheManager reflectionCacheManager, DataLoader loader, Class<?> eventClass) -
Method Summary
Modifier and TypeMethodDescriptionReturns theDataLoaderassociated with the trigger.protected voidinitTrigger(ReflectionCacheManager reflectionCacheManager, FacetOwner owner, Class<?> eventClass) protected voidload()
-
Field Details
-
loader
-
-
Constructor Details
-
AbstractOnEventLoadTrigger
protected AbstractOnEventLoadTrigger(FacetOwner owner, ReflectionCacheManager reflectionCacheManager, DataLoader loader, Class<?> eventClass)
-
-
Method Details
-
initTrigger
protected void initTrigger(ReflectionCacheManager reflectionCacheManager, FacetOwner owner, Class<?> eventClass) -
load
protected void load() -
getLoader
Description copied from interface:DataLoadCoordinator.TriggerReturns theDataLoaderassociated with the trigger.- Specified by:
getLoaderin interfaceDataLoadCoordinator.Trigger- Returns:
- the associated
DataLoader
-