Package io.jmix.ui.component
Interface FilterComponent
- All Superinterfaces:
Component
- All Known Subinterfaces:
FullTextFilter,GroupFilter,JpqlFilter<V>,LogicalFilterComponent,PropertyFilter<V>,SingleFilterComponent<V>
- All Known Implementing Classes:
AbstractSingleFilterComponent,FullTextFilterImpl,GroupFilterImpl,JpqlFilterImpl,PropertyFilterImpl
Component that can be used for filtering entities returned by the
DataLoader.
The filter component is related to Condition which will be used together with
query when loading entities into the DataLoader.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper -
Field Summary
Fields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE -
Method Summary
Modifier and TypeMethodDescriptionvoidapply()Applies the current filter component condition.booleanbooleanvoidsetAutoApply(boolean autoApply) Sets whether the filter component should be automatically applied to theDataLoaderwhen the value component value is changed.voidsetConditionModificationDelegated(boolean conditionModificationDelegated) Sets whether the modification ofDataLoadercondition is delegated to the ownerFilterComponentorFilter.voidsetDataLoader(DataLoader dataLoader) Sets aDataLoaderrelated to the current filter component.Methods inherited from interface io.jmix.ui.component.Component
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
-
Method Details
-
getDataLoader
DataLoader getDataLoader()- Returns:
- a
DataLoaderrelated to the current filter component
-
setDataLoader
Sets aDataLoaderrelated to the current filter component.- Parameters:
dataLoader- aDataLoaderto set
-
isAutoApply
boolean isAutoApply()- Returns:
trueif the filter component should be automatically applied to theDataLoaderwhen the value component value is changed
-
setAutoApply
Sets whether the filter component should be automatically applied to theDataLoaderwhen the value component value is changed.- Parameters:
autoApply-trueif the filter component should be automatically applied to theDataLoaderwhen the value component value is changed
-
isConditionModificationDelegated
boolean isConditionModificationDelegated()- Returns:
trueif the filter component is located inside theFilterorLogicalFilterComponentand the modification ofDataLoadercondition is delegated to the ownerFilterComponentorFilter,falseotherwise
-
setConditionModificationDelegated
void setConditionModificationDelegated(boolean conditionModificationDelegated) Sets whether the modification ofDataLoadercondition is delegated to the ownerFilterComponentorFilter.- Parameters:
conditionModificationDelegated-trueif the filter component is located inside theFilterorLogicalFilterComponentand the modification ofDataLoadercondition is delegated to the ownerFilterComponentorFilter,falseotherwise
-
getQueryCondition
Condition getQueryCondition()- Returns:
- a
Conditionrelated to the current filter component
-
apply
void apply()Applies the current filter component condition.
-