Package io.jmix.flowui.model
Class InstanceLoader.PreLoadEvent<T>
java.lang.Object
java.util.EventObject
io.jmix.flowui.model.InstanceLoader.PreLoadEvent<T>
- All Implemented Interfaces:
- Serializable
- Enclosing interface:
- InstanceLoader<E>
Event sent before loading an entity instance.
 
 You can prevent load using the preventLoad() method of the event, for example:
 
     @Subscribe(id = "fooDl", target = Target.DATA_LOADER)
     private void onFooDlPreLoad(InstanceLoader.PreLoadEvent event) {
         if (doNotLoad()) {
             event.preventLoad();
         }
     }
 - 
Field SummaryFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the load context of the current data loader.The data loader which sent the event.booleanReturns true ifpreventLoad()method was called and loading will be aborted.voidInvoke this method if you want to abort the loading.Methods inherited from class java.util.EventObjecttoString
- 
Constructor Details- 
PreLoadEvent
 
- 
- 
Method Details- 
getSourceThe data loader which sent the event.- Overrides:
- getSourcein class- EventObject
 
- 
getLoadContextReturns the load context of the current data loader.
- 
preventLoadpublic void preventLoad()Invoke this method if you want to abort the loading.
- 
isLoadPreventedpublic boolean isLoadPrevented()Returns true ifpreventLoad()method was called and loading will be aborted.
 
-