Interface LogicalFilterComponent<C extends com.vaadin.flow.component.Component & LogicalFilterComponent<C>>
- All Superinterfaces:
FilterComponent
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasEnabled
,com.vaadin.flow.component.HasStyle
,Serializable
- All Known Implementing Classes:
GroupFilter
public interface LogicalFilterComponent<C extends com.vaadin.flow.component.Component & LogicalFilterComponent<C>>
extends FilterComponent
Component which can contain other filter components and can be used for filtering entities
returned by the
DataLoader
. The component is related to LogicalCondition
which
will be used together with query when loading entities into the DataLoader
.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
LogicalFilterComponent.FilterComponentsChangeEvent<C extends com.vaadin.flow.component.Component & LogicalFilterComponent<C>>
static enum
Operation representing corresponding logical filtering condition. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(FilterComponent filterComponent) Adds aFilterComponent
to the component.com.vaadin.flow.shared.Registration
addFilterComponentsChangeListener
(com.vaadin.flow.component.ComponentEventListener<LogicalFilterComponent.FilterComponentsChangeEvent<C>> listener) boolean
void
remove
(FilterComponent filterComponent) Removes aFilterComponent
from the component.void
Removes all filter components from the component.void
setOperation
(LogicalFilterComponent.Operation operation) Sets a filtering operation.void
setOperationTextVisible
(boolean operationTextVisible) Sets whether to show operation caption.Methods inherited from interface io.jmix.flowui.component.filter.FilterComponent
apply, getDataLoader, isAutoApply, isConditionModificationDelegated, setAutoApply, setConditionModificationDelegated, setDataLoader
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
-
getQueryCondition
LogicalCondition getQueryCondition()- Specified by:
getQueryCondition
in interfaceFilterComponent
- Returns:
- a
LogicalCondition
related to the current component
-
add
Adds aFilterComponent
to the component. Updates the currentLogicalCondition
by adding aCondition
from theFilterComponent
.- Parameters:
filterComponent
- aFilterComponent
to add- See Also:
-
remove
Removes aFilterComponent
from the component. Updates the currentLogicalCondition
.- Parameters:
filterComponent
- aFilterComponent
to remove
-
removeAll
void removeAll()Removes all filter components from the component. Resets the currentLogicalCondition
. -
getOwnFilterComponents
List<FilterComponent> getOwnFilterComponents()- Returns:
- the list of filter components directly owned by the current component
-
getFilterComponents
List<FilterComponent> getFilterComponents()- Returns:
- the list of filter components belonging to the whole components tree below this component
-
getOperation
LogicalFilterComponent.Operation getOperation()- Returns:
- a filtering operation
-
setOperation
Sets a filtering operation.- Parameters:
operation
- a filtering operation
-
isOperationTextVisible
boolean isOperationTextVisible()- Returns:
- whether to show operation caption
-
setOperationTextVisible
void setOperationTextVisible(boolean operationTextVisible) Sets whether to show operation caption.- Parameters:
operationTextVisible
- whether to show operation caption
-
addFilterComponentsChangeListener
com.vaadin.flow.shared.Registration addFilterComponentsChangeListener(com.vaadin.flow.component.ComponentEventListener<LogicalFilterComponent.FilterComponentsChangeEvent<C>> listener)
-