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
Nested ClassesModifier and TypeInterfaceDescriptionstatic classLogicalFilterComponent.FilterComponentsChangeEvent<C extends com.vaadin.flow.component.Component & LogicalFilterComponent<C>>static enumOperation representing corresponding logical filtering condition. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(FilterComponent filterComponent) Adds aFilterComponentto the component.com.vaadin.flow.shared.RegistrationaddFilterComponentsChangeListener(com.vaadin.flow.component.ComponentEventListener<LogicalFilterComponent.FilterComponentsChangeEvent<C>> listener) booleanvoidremove(FilterComponent filterComponent) Removes aFilterComponentfrom the component.voidRemoves all filter components from the component.voidsetOperation(LogicalFilterComponent.Operation operation) Sets a filtering operation.voidsetOperationTextVisible(boolean operationTextVisible) Sets whether to show operation caption.Methods inherited from interface io.jmix.flowui.component.filer.FilterComponent
apply, getDataLoader, isAutoApply, isConditionModificationDelegated, setAutoApply, setConditionModificationDelegated, setDataLoaderMethods 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
-
getQueryCondition
LogicalCondition getQueryCondition()- Specified by:
getQueryConditionin interfaceFilterComponent- Returns:
- a
LogicalConditionrelated to the current component
-
add
Adds aFilterComponentto the component. Updates the currentLogicalConditionby adding aConditionfrom theFilterComponent.- Parameters:
filterComponent- aFilterComponentto add- See Also:
-
remove
Removes aFilterComponentfrom the component. Updates the currentLogicalCondition.- Parameters:
filterComponent- aFilterComponentto 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)
-