Package io.jmix.ui.component.impl
Class DataLoadCoordinatorImpl
java.lang.Object
io.jmix.ui.component.impl.AbstractFacet
io.jmix.ui.component.impl.DataLoadCoordinatorImpl
- All Implemented Interfaces:
DataLoadCoordinator
,Facet
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.DataLoadCoordinator
DataLoadCoordinator.LikeClause, DataLoadCoordinator.Trigger
-
Field Summary
Fields inherited from class io.jmix.ui.component.impl.AbstractFacet
id, owner
Fields inherited from interface io.jmix.ui.component.DataLoadCoordinator
DEFAULT_COMPONENT_PREFIX, DEFAULT_CONTAINER_PREFIX
-
Constructor Summary
ConstructorDescriptionDataLoadCoordinatorImpl
(UiControllerReflectionInspector reflectionInspector, QueryParamValuesManager queryParamValuesManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOnComponentValueChangedLoadTrigger
(DataLoader loader, Component component, String param, DataLoadCoordinator.LikeClause likeClause) Adds trigger on visual componentValueChangeEvent
.void
addOnContainerItemChangedLoadTrigger
(DataLoader loader, InstanceContainer container, String param) Adds trigger on data containerItemChangeEvent
.void
addOnFrameOwnerEventLoadTrigger
(DataLoader loader, Class eventClass) Adds trigger on screen/fragment event.void
Configures triggers automatically relying upon parameter prefixes.Returns configured triggers.void
setComponentPrefix
(String value) Sets parameter prefix to denote a visual component.void
setContainerPrefix
(String value) Sets parameter prefix to denote a data container.void
Methods inherited from class io.jmix.ui.component.impl.AbstractFacet
getEventHub, getId, getOwner, hasSubscriptions, publish, setId, unsubscribe
-
Constructor Details
-
DataLoadCoordinatorImpl
public DataLoadCoordinatorImpl(UiControllerReflectionInspector reflectionInspector, QueryParamValuesManager queryParamValuesManager)
-
-
Method Details
-
setOwner
Description copied from interface:Facet
- Specified by:
setOwner
in interfaceFacet
- Overrides:
setOwner
in classAbstractFacet
- Parameters:
owner
- owner frame
-
setContainerPrefix
Description copied from interface:DataLoadCoordinator
Sets parameter prefix to denote a data container.- Specified by:
setContainerPrefix
in interfaceDataLoadCoordinator
-
setComponentPrefix
Description copied from interface:DataLoadCoordinator
Sets parameter prefix to denote a visual component.- Specified by:
setComponentPrefix
in interfaceDataLoadCoordinator
-
getTriggers
Description copied from interface:DataLoadCoordinator
Returns configured triggers.- Specified by:
getTriggers
in interfaceDataLoadCoordinator
-
addOnFrameOwnerEventLoadTrigger
Description copied from interface:DataLoadCoordinator
Adds trigger on screen/fragment event.- Specified by:
addOnFrameOwnerEventLoadTrigger
in interfaceDataLoadCoordinator
- Parameters:
loader
- loadereventClass
- event class
-
addOnContainerItemChangedLoadTrigger
public void addOnContainerItemChangedLoadTrigger(DataLoader loader, InstanceContainer container, @Nullable String param) Description copied from interface:DataLoadCoordinator
Adds trigger on data containerItemChangeEvent
.- Specified by:
addOnContainerItemChangedLoadTrigger
in interfaceDataLoadCoordinator
- Parameters:
loader
- loadercontainer
- master data containerparam
- loader parameter
-
addOnComponentValueChangedLoadTrigger
public void addOnComponentValueChangedLoadTrigger(DataLoader loader, Component component, @Nullable String param, DataLoadCoordinator.LikeClause likeClause) Description copied from interface:DataLoadCoordinator
Adds trigger on visual componentValueChangeEvent
.- Specified by:
addOnComponentValueChangedLoadTrigger
in interfaceDataLoadCoordinator
- Parameters:
loader
- loadercomponent
- component which must implementHasValue
param
- loader parameterlikeClause
- whether the condition using the parameter is a LIKE clause
-
configureAutomatically
public void configureAutomatically()Description copied from interface:DataLoadCoordinator
Configures triggers automatically relying upon parameter prefixes. All data containers that don't have a prefixed parameter in the query string, are configured to be triggered onBeforeShowEvent
orAttachEvent
.- Specified by:
configureAutomatically
in interfaceDataLoadCoordinator
-