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:
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 TypeMethodDescriptionvoid
apply()
Applies the current filter component condition.boolean
boolean
void
setAutoApply
(boolean autoApply) Sets whether the filter component should be automatically applied to theDataLoader
when the value component value is changed.void
setConditionModificationDelegated
(boolean conditionModificationDelegated) Sets whether the modification ofDataLoader
condition is delegated to the ownerFilterComponent
orGenericFilter
.void
setDataLoader
(DataLoader dataLoader) Sets aDataLoader
related to the current filter component.Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabled
Methods 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
DataLoader
related to the current filter component
-
setDataLoader
Sets aDataLoader
related to the current filter component.- Parameters:
dataLoader
- aDataLoader
to set
-
isAutoApply
boolean isAutoApply()- Returns:
true
if the filter component should be automatically applied to theDataLoader
when the value component value is changed
-
setAutoApply
void setAutoApply(boolean autoApply) Sets whether the filter component should be automatically applied to theDataLoader
when the value component value is changed.- Parameters:
autoApply
-true
if the filter component should be automatically applied to theDataLoader
when the value component value is changed
-
isConditionModificationDelegated
boolean isConditionModificationDelegated()- Returns:
true
if the filter component is located inside theGenericFilter
and the modification ofDataLoader
condition is delegated to the ownerFilterComponent
orGenericFilter
,false
otherwise
-
setConditionModificationDelegated
void setConditionModificationDelegated(boolean conditionModificationDelegated) Sets whether the modification ofDataLoader
condition is delegated to the ownerFilterComponent
orGenericFilter
.- Parameters:
conditionModificationDelegated
-true
if the filter component is located inside theGenericFilter
and the modification ofDataLoader
condition is delegated to the ownerFilterComponent
orGenericFilter
,false
otherwise
-
getQueryCondition
Condition getQueryCondition()- Returns:
- a
Condition
related to the current filter component
-
apply
void apply()Applies the current filter component condition.
-