Package io.jmix.flowui.component.filter
Interface SingleFilterComponent<V>
- Type Parameters:
V
- value type
- All Superinterfaces:
FilterComponent
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasEnabled
,com.vaadin.flow.component.HasStyle
,HasSubParts
,Serializable
- All Known Implementing Classes:
FullTextFilter
,JpqlFilter
,PropertyFilter
,SingleFilterComponentBase
Component which cannot contain other filter component but can be used for filtering entities
returned by the
DataLoader
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault Object
getSubPart
(String name) com.vaadin.flow.component.HasValueAndElement<?,
V> boolean
void
setLabelVisible
(boolean labelVisible) Sets label visibility.void
setLabelWidth
(String labelWidth) Sets the label width.void
setParameterName
(String parameterName) Sets the name of the associated query parameter name.void
setValueComponent
(com.vaadin.flow.component.HasValueAndElement<?, V> valueComponent) Sets the field for editing a property value.Methods inherited from interface io.jmix.flowui.component.filter.FilterComponent
apply, getDataLoader, getQueryCondition, isAutoApply, isConditionModificationDelegated, setAutoApply, setConditionModificationDelegated, setDataLoader
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabled
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Method Details
-
getParameterName
String getParameterName()- Returns:
- the name of the associated query parameter name
-
setParameterName
Sets the name of the associated query parameter name.- Parameters:
parameterName
- a name of the associated query parameter name
-
getSubPart
- Specified by:
getSubPart
in interfaceHasSubParts
-
getValueComponent
com.vaadin.flow.component.HasValueAndElement<?,V> getValueComponent()- Returns:
- a field for editing a property value
-
setValueComponent
Sets the field for editing a property value.- Parameters:
valueComponent
- a field for editing a property value
-
getLabelWidth
- Returns:
- the width which has been set for the label
-
setLabelWidth
Sets the label width.The width should be in a format understood by the browser, e.g. "100px" or "2.5em".
If the provided
width
value is null then width is removed.- Parameters:
labelWidth
- the width to set, may benull
-
isLabelVisible
boolean isLabelVisible()- Returns:
true
if label is visible
-
setLabelVisible
void setLabelVisible(boolean labelVisible) Sets label visibility. Default value istrue
.- Parameters:
labelVisible
- whether to show label or not
-