public static interface Filter.Configuration extends java.lang.Comparable<Filter.Configuration>
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getFilterComponentDefaultValue(java.lang.String parameterName)
Returns a default value of
FilterComponent by parameter name. |
java.lang.String |
getId() |
java.lang.String |
getName() |
Filter |
getOwner() |
io.jmix.core.querycondition.LogicalCondition |
getQueryCondition() |
LogicalFilterComponent |
getRootLogicalFilterComponent() |
boolean |
isFilterComponentModified(FilterComponent filterComponent)
Returns whether the
FilterComponent of configuration is modified. |
boolean |
isModified() |
void |
resetAllDefaultValues()
Sets null as the default value for all configuration filter components.
|
void |
resetFilterComponentDefaultValue(java.lang.String parameterName)
Resets a default value of
FilterComponent . |
void |
setFilterComponentDefaultValue(java.lang.String parameterName,
java.lang.Object defaultValue)
Sets a default value of
FilterComponent for the configuration by the parameter name. |
void |
setFilterComponentModified(FilterComponent filterComponent,
boolean modified)
Sets whether the
FilterComponent of configuration is modified. |
void |
setModified(boolean modified)
Sets whether configuration is modified.
|
void |
setName(java.lang.String name)
Sets the name of configuration.
|
void |
setRootLogicalFilterComponent(LogicalFilterComponent rootLogicalFilterComponent)
Sets the root element of configuration.
|
java.lang.String getId()
@Nullable java.lang.String getName()
void setName(@Nullable java.lang.String name)
RunTimeConfiguration
.name
- a configuration nameRunTimeConfiguration
LogicalFilterComponent getRootLogicalFilterComponent()
LogicalFilterComponent
void setRootLogicalFilterComponent(LogicalFilterComponent rootLogicalFilterComponent)
RunTimeConfiguration
.rootLogicalFilterComponent
- a root element of configurationLogicalFilterComponent
,
RunTimeConfiguration
io.jmix.core.querycondition.LogicalCondition getQueryCondition()
LogicalCondition
related to the configurationboolean isModified()
void setModified(boolean modified)
modified
- whether configuration is modified.boolean isFilterComponentModified(FilterComponent filterComponent)
FilterComponent
of configuration is modified.
If a filter component is modified, then a remove button appears next to it.filterComponent
- the filter component to checkvoid setFilterComponentModified(FilterComponent filterComponent, boolean modified)
FilterComponent
of configuration is modified.
If a filter component is modified, then a remove button appears next to it.filterComponent
- a filter componentmodified
- whether the filter component of configuration is modifiedvoid setFilterComponentDefaultValue(java.lang.String parameterName, @Nullable java.lang.Object defaultValue)
FilterComponent
for the configuration by the parameter name.
This allows the default values to be saved and displayed in the configuration editor.parameterName
- a parameter name of filter componentdefaultValue
- a default valuevoid resetFilterComponentDefaultValue(java.lang.String parameterName)
FilterComponent
. The default value for the filter
component becomes null.parameterName
- a parameter name of filter component@Nullable java.lang.Object getFilterComponentDefaultValue(java.lang.String parameterName)
FilterComponent
by parameter name.parameterName
- a parameter name of filter componentvoid resetAllDefaultValues()