Package io.jmix.ui.component
Interface LogicalFilterComponent
- All Superinterfaces:
Component,FilterComponent
- All Known Subinterfaces:
GroupFilter
- All Known Implementing Classes:
GroupFilterImpl
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 enumOperation representing corresponding logical filtering condition.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 TypeMethodDescriptionvoidadd(FilterComponent filterComponent) Adds aFilterComponentto the component.booleanvoidremove(FilterComponent filterComponent) Removes aFilterComponentfrom the component.voidRemoves all filter components from the component.voidsetOperation(LogicalFilterComponent.Operation operation) Sets a filtering operation.voidsetOperationCaptionVisible(boolean operationCaptionVisible) Sets whether to show operation caption.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, withUnwrappedCompositionMethods inherited from interface io.jmix.ui.component.FilterComponent
apply, getDataLoader, isAutoApply, isConditionModificationDelegated, setAutoApply, setConditionModificationDelegated, setDataLoader
-
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
@StudioProperty(type=ENUMERATION, initialValue="AND", options={"AND","OR"}, required=true) void setOperation(LogicalFilterComponent.Operation operation) Sets a filtering operation.- Parameters:
operation- a filtering operation
-
isOperationCaptionVisible
boolean isOperationCaptionVisible()- Returns:
- whether to show operation caption
-
setOperationCaptionVisible
@StudioProperty(defaultValue="true") void setOperationCaptionVisible(boolean operationCaptionVisible) Sets whether to show operation caption.- Parameters:
operationCaptionVisible- whether to show operation caption
-