Package io.jmix.flowui.component.filter
Interface FilterComponent
- All Superinterfaces:
com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasStyle,Serializable
- All Known Subinterfaces:
LogicalFilterComponent<C>,SingleFilterComponent<V>
- All Known Implementing Classes:
FullTextFilter,GroupFilter,JpqlFilter,PropertyFilter,SingleFilterComponentBase
public interface FilterComponent
extends com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasStyle
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.-
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 ownerFilterComponentorGenericFilter.voidsetDataLoader(DataLoader dataLoader) Sets aDataLoaderrelated to the current filter component.Methods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
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
void setAutoApply(boolean autoApply) 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 theGenericFilterand the modification ofDataLoadercondition is delegated to the ownerFilterComponentorGenericFilter,falseotherwise
-
setConditionModificationDelegated
void setConditionModificationDelegated(boolean conditionModificationDelegated) Sets whether the modification ofDataLoadercondition is delegated to the ownerFilterComponentorGenericFilter.- Parameters:
conditionModificationDelegated-trueif the filter component is located inside theGenericFilterand the modification ofDataLoadercondition is delegated to the ownerFilterComponentorGenericFilter,falseotherwise
-
getQueryCondition
Condition getQueryCondition()- Returns:
- a
Conditionrelated to the current filter component
-
apply
void apply()Applies the current filter component condition.
-