Class FilterComponentBuilder.PropertyFilterBuilder<V>
java.lang.Object
io.jmix.flowui.component.genericfilter.FilterComponentBuilder.PropertyFilterBuilder<V>
- Type Parameters:
V- the value type
- Enclosing class:
FilterComponentBuilder
Fluent builder for
PropertyFilter.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Vprotected final GenericFilterprotected FilterComponentsprotected Stringprotected Metadataprotected PropertyFilter.Operationprotected booleanprotected booleanprotected String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPropertyFilterBuilder(GenericFilter filter, org.springframework.context.ApplicationContext applicationContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidautowireDependencies(org.springframework.context.ApplicationContext applicationContext) build()Builds and returns the configuredPropertyFilter.defaultValue(@Nullable V defaultValue) Sets the default (pre-filled) value for the filter condition.Overrides the auto-generated label text.operation(PropertyFilter.Operation operation) Sets the filtering operation (e.g.operationEditable(boolean operationEditable) Controls whether the user can change the filter operation at runtime via a dropdown selector.operationTextVisible(boolean operationTextVisible) Controls whether the operation label (e.g.Sets the entity property path (e.g.
-
Field Details
-
filter
-
metadata
-
filterComponents
-
property
-
operation
-
defaultValue
-
label
-
operationEditable
protected boolean operationEditable -
operationTextVisible
protected boolean operationTextVisible -
built
protected boolean built
-
-
Constructor Details
-
PropertyFilterBuilder
protected PropertyFilterBuilder(GenericFilter filter, org.springframework.context.ApplicationContext applicationContext)
-
-
Method Details
-
autowireDependencies
protected void autowireDependencies(org.springframework.context.ApplicationContext applicationContext) -
property
Sets the entity property path (e.g."name"or"customer.city.name"). Required. -
operation
public FilterComponentBuilder.PropertyFilterBuilder<V> operation(PropertyFilter.Operation operation) Sets the filtering operation (e.g.PropertyFilter.Operation.EQUAL). Required. -
defaultValue
Sets the default (pre-filled) value for the filter condition. Optional. -
label
Overrides the auto-generated label text. Optional. -
operationEditable
Controls whether the user can change the filter operation at runtime via a dropdown selector. Defaults tofalse. -
operationTextVisible
public FilterComponentBuilder.PropertyFilterBuilder<V> operationTextVisible(boolean operationTextVisible) Controls whether the operation label (e.g. "contains", "=") is shown next to the value field. Defaults totrue. -
build
Builds and returns the configuredPropertyFilter.- Throws:
IllegalStateException- ifpropertyoroperationwas not set, if the owning filter has no DataLoader, or if this builder instance has already been used
-