Package io.jmix.searchui.component.impl
Class FullTextFilterImpl
java.lang.Object
io.jmix.ui.component.CompositeComponent<HBoxLayout>
io.jmix.ui.component.impl.AbstractSingleFilterComponent<String>
io.jmix.searchui.component.impl.FullTextFilterImpl
- All Implemented Interfaces:
FullTextFilter
,AttachNotifier
,Component
,Component.BelongToFrame
,Component.Editable
,Component.Focusable
,Component.HasCaption
,Component.HasDescription
,Component.HasIcon
,CompositeWithCaption
,CompositeWithDescription
,CompositeWithHtmlCaption
,CompositeWithHtmlDescription
,FilterComponent
,HasContextHelp
,HasDebugId
,HasHtmlCaption
,HasHtmlDescription
,HasHtmlSanitizer
,HasValue<String>
,Requirable
,SingleFilterComponent<String>
,SupportsCaptionPosition
,Validatable
public class FullTextFilterImpl
extends AbstractSingleFilterComponent<String>
implements FullTextFilter
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.component.CompositeComponent
CompositeComponent.CreateEvent
Nested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
Nested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEvent
Nested classes/interfaces inherited from interface io.jmix.ui.component.HasValue
HasValue.ValueChangeEvent<V>
Nested classes/interfaces inherited from interface io.jmix.ui.component.SupportsCaptionPosition
SupportsCaptionPosition.CaptionPosition
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected EntitySearcher
protected IdSerialization
protected JpqlFilterSupport
protected String
protected SearchStrategy
protected SearchStrategyManager
Fields inherited from class io.jmix.ui.component.impl.AbstractSingleFilterComponent
autoApply, caption, captionLabel, captionPosition, captionVisible, captionWidth, conditionModificationDelegated, dataLoader, icon, queryCondition, uiComponents, valueComponent
Fields inherited from class io.jmix.ui.component.CompositeComponent
applicationContext, frame, id, prefixId, root
Fields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Fields inherited from interface io.jmix.searchui.component.FullTextFilter
NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Condition
Returns aSearchStrategy
that will be used for searching using this component.void
setDataLoader
(DataLoader dataLoader) Sets aDataLoader
related to the current filter component.void
setEntitySearcher
(EntitySearcher entitySearcher) void
setIdSerialization
(IdSerialization idSerialization) void
setJpqlFilterSupport
(JpqlFilterSupport jpqlFilterSupport) void
setParameterName
(String parameterName) Sets the name of the associated query parameter name.void
setSearchStrategy
(SearchStrategy searchStrategy) void
setSearchStrategyManager
(SearchStrategyManager searchStrategyManager) protected void
updateQueryCondition
(String newValue) Methods inherited from class io.jmix.ui.component.impl.AbstractSingleFilterComponent
addValueChangeListener, apply, checkValueComponentState, createCaptionLabel, createRootComponent, focus, getCaption, getCaptionPosition, getCaptionWidth, getCaptionWidthSizeUnit, getChildAlignment, getContextHelpIconClickHandler, getContextHelpText, getIcon, getIconName, getRequiredMessage, getTabIndex, getValue, getValueComponent, initRootComponent, initValueComponent, isAutoApply, isCaptionVisible, isConditionModificationDelegated, isContextHelpTextHtmlEnabled, isEditable, isRequired, isValid, onCreate, onValueChanged, setAutoApply, setCaption, setCaptionAsHtml, setCaptionPosition, setCaptionVisible, setCaptionWidth, setConditionModificationDelegated, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setEditable, setIcon, setIconFromSet, setRequired, setRequiredMessage, setTabIndex, setUiComponentProperties, setUiComponents, setupLoaderFirstResult, setValue, setValueComponent, setWidth, updateCaption, updateCaptionLayout, updateChildAlignment, updateDataLoaderCondition, updateIcon, validate
Methods inherited from class io.jmix.ui.component.CompositeComponent
addAttachListener, addCreateListener, addDetachListener, addStyleName, assignDebugId, attached, detached, disableEventListeners, enableEventListeners, getAlignment, getComposition, getCompositionOrNull, getDebugId, getEventHub, getFrame, getFullId, getHeight, getHeightSizeUnit, getId, getInnerComponent, getInnerComponentOptional, getParent, getPrefixId, getStyleName, getUiEventListeners, getWidth, getWidthSizeUnit, hasSubscriptions, isAttached, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, publish, removeStyleName, setAlignment, setApplicationContext, setComposition, setDebugId, setEnabled, setFrame, setHeight, setHtmlSanitizerEnabled, setId, setParent, setResponsive, setStyleName, setUiEventListeners, setVisible, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, updateComponentIds, updateIdIfNeeded, withUnwrapped, withUnwrappedComposition
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.ui.component.Component
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
Methods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrame
Methods inherited from interface io.jmix.ui.component.Component.Editable
isEditable, isEditableWithParent, setEditable
Methods inherited from interface io.jmix.ui.component.Component.Focusable
focus, getTabIndex, isFocusable, setFocusable, setTabIndex
Methods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, setIcon, setIconFromSet
Methods inherited from interface io.jmix.ui.component.CompositeWithDescription
getDescription, setDescription
Methods inherited from interface io.jmix.ui.component.CompositeWithHtmlCaption
isCaptionAsHtml
Methods inherited from interface io.jmix.ui.component.CompositeWithHtmlDescription
isDescriptionAsHtml, setDescriptionAsHtml
Methods inherited from interface io.jmix.ui.component.FilterComponent
apply, isAutoApply, isConditionModificationDelegated, setAutoApply, setConditionModificationDelegated
Methods inherited from interface io.jmix.ui.component.HasContextHelp
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
Methods inherited from interface io.jmix.ui.component.HasHtmlSanitizer
isHtmlSanitizerEnabled, setHtmlSanitizerEnabled
Methods inherited from interface io.jmix.ui.component.HasValue
addValueChangeListener, clear, getEmptyValue, getValue, isEmpty, setValue
Methods inherited from interface io.jmix.ui.component.Requirable
getRequiredMessage, isRequired, setRequired, setRequiredMessage
Methods inherited from interface io.jmix.ui.component.SingleFilterComponent
getCaptionWidth, getCaptionWidthSizeUnit, getValueComponent, isCaptionVisible, setCaptionVisible, setCaptionWidth, setValueComponent
Methods inherited from interface io.jmix.ui.component.SupportsCaptionPosition
getCaptionPosition, setCaptionPosition
Methods inherited from interface io.jmix.ui.component.Validatable
isValid, isValidateOnCommit, validate
-
Field Details
-
jpqlFilterSupport
-
entitySearcher
-
idSerialization
-
parameterName
-
searchStrategy
-
searchStrategyManager
-
correctWhere
-
-
Constructor Details
-
FullTextFilterImpl
public FullTextFilterImpl()
-
-
Method Details
-
setJpqlFilterSupport
-
setEntitySearcher
-
setIdSerialization
-
setSearchStrategyManager
-
setDataLoader
Description copied from interface:FilterComponent
Sets aDataLoader
related to the current filter component.- Specified by:
setDataLoader
in interfaceFilterComponent
- Overrides:
setDataLoader
in classAbstractSingleFilterComponent<String>
- Parameters:
dataLoader
- aDataLoader
to set
-
createQueryCondition
- Specified by:
createQueryCondition
in classAbstractSingleFilterComponent<String>
-
getInnerComponentPrefix
- Specified by:
getInnerComponentPrefix
in classAbstractSingleFilterComponent<String>
-
updateQueryCondition
- Specified by:
updateQueryCondition
in classAbstractSingleFilterComponent<String>
-
getQueryCondition
- Specified by:
getQueryCondition
in interfaceFilterComponent
- Overrides:
getQueryCondition
in classAbstractSingleFilterComponent<String>
- Returns:
- a
Condition
related to the current filter component
-
getDataLoader
- Specified by:
getDataLoader
in interfaceFilterComponent
- Overrides:
getDataLoader
in classAbstractSingleFilterComponent<String>
- Returns:
- a
DataLoader
related to the current filter component
-
getParameterName
- Specified by:
getParameterName
in interfaceSingleFilterComponent<String>
- Returns:
- the name of the associated query parameter name
-
setParameterName
Description copied from interface:SingleFilterComponent
Sets the name of the associated query parameter name.- Specified by:
setParameterName
in interfaceSingleFilterComponent<String>
- Parameters:
parameterName
- a name of the associated query parameter name
-
getSearchStrategy
Description copied from interface:FullTextFilter
Returns aSearchStrategy
that will be used for searching using this component. If no explicit strategy is set to the full-text filter then a default strategy will be used.- Specified by:
getSearchStrategy
in interfaceFullTextFilter
- Returns:
- a
SearchStrategy
or null if the strategy is not explicitly set - See Also:
-
setSearchStrategy
- Specified by:
setSearchStrategy
in interfaceFullTextFilter
-