Package io.jmix.ui.component
Interface Filter.Configuration
- All Superinterfaces:
Comparable<Filter.Configuration>
- All Known Implementing Classes:
DesignTimeConfiguration
,RunTimeConfiguration
- Enclosing interface:
- Filter
A configuration is a set of filter components.
-
Method Summary
Modifier and TypeMethodDescriptiongetFilterComponentDefaultValue
(String parameterName) Returns a default value ofFilterComponent
by parameter name.getId()
getName()
getOwner()
boolean
isFilterComponentModified
(FilterComponent filterComponent) Returns whether theFilterComponent
of configuration is modified.boolean
void
Sets null as the default value for all configuration filter components.void
resetFilterComponentDefaultValue
(String parameterName) Resets a default value ofFilterComponent
.void
setFilterComponentDefaultValue
(String parameterName, Object defaultValue) Sets a default value ofFilterComponent
for the configuration by the parameter name.void
setFilterComponentModified
(FilterComponent filterComponent, boolean modified) Sets whether theFilterComponent
of configuration is modified.void
setModified
(boolean modified) Sets whether configuration is modified.void
Sets the name of configuration.void
setRootLogicalFilterComponent
(LogicalFilterComponent rootLogicalFilterComponent) Sets the root element of configuration.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getOwner
Filter getOwner()- Returns:
- a
Filter
owning the configuration
-
getId
String getId()- Returns:
- a configuration id
-
getName
- Returns:
- a configuration name
-
setName
Sets the name of configuration. This method is only available for theRunTimeConfiguration
.- Parameters:
name
- a configuration name- See Also:
-
getRootLogicalFilterComponent
LogicalFilterComponent getRootLogicalFilterComponent()- Returns:
- a root element of configuration
- See Also:
-
setRootLogicalFilterComponent
Sets the root element of configuration. This method is only available for theRunTimeConfiguration
.- Parameters:
rootLogicalFilterComponent
- a root element of configuration- See Also:
-
getQueryCondition
LogicalCondition getQueryCondition()- Returns:
- a
LogicalCondition
related to the configuration
-
isModified
boolean isModified()- Returns:
- true if the configuration is modified
-
setModified
void setModified(boolean modified) Sets whether configuration is modified. If a filter component is modified, then a remove button appears next to it.- Parameters:
modified
- whether configuration is modified.
-
isFilterComponentModified
Returns whether theFilterComponent
of configuration is modified. If a filter component is modified, then a remove button appears next to it.- Parameters:
filterComponent
- the filter component to check- Returns:
- whether the filter component of configuration is modified
-
setFilterComponentModified
Sets whether theFilterComponent
of configuration is modified. If a filter component is modified, then a remove button appears next to it.- Parameters:
filterComponent
- a filter componentmodified
- whether the filter component of configuration is modified
-
setFilterComponentDefaultValue
Sets a default value ofFilterComponent
for the configuration by the parameter name. This allows the default values to be saved and displayed in the configuration editor.- Parameters:
parameterName
- a parameter name of filter componentdefaultValue
- a default value
-
resetFilterComponentDefaultValue
Resets a default value ofFilterComponent
. The default value for the filter component becomes null.- Parameters:
parameterName
- a parameter name of filter component
-
getFilterComponentDefaultValue
Returns a default value ofFilterComponent
by parameter name.- Parameters:
parameterName
- a parameter name of filter component- Returns:
- a default value of filter component by parameter name
-
resetAllDefaultValues
void resetAllDefaultValues()Sets null as the default value for all configuration filter components.
-