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,Serializable
- All Known Implementing Classes:
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 TypeMethodDescriptioncom.vaadin.flow.component.HasValueAndElement<?,V> booleanvoidsetLabelVisible(boolean labelVisible) Sets label visibility.voidsetLabelWidth(String labelWidth) Sets the label width.voidsetParameterName(String parameterName) Sets the name of the associated query parameter name.voidsetValueComponent(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, setDataLoaderMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods 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
-
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
widthvalue is null then width is removed.- Parameters:
labelWidth- the width to set, may benull
-
isLabelVisible
boolean isLabelVisible()- Returns:
trueif label is visible
-
setLabelVisible
void setLabelVisible(boolean labelVisible) Sets label visibility. Default value istrue.- Parameters:
labelVisible- whether to show label or not
-