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.CreateEventNested 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.WrapperNested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEventNested 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
FieldsModifier and TypeFieldDescriptionprotected Stringprotected EntitySearcherprotected static final Stringprotected IdSerializationprotected JpqlFilterSupportprotected Stringprotected SearchStrategyprotected SearchStrategyManagerFields inherited from class io.jmix.ui.component.impl.AbstractSingleFilterComponent
autoApply, caption, captionLabel, captionPosition, captionVisible, captionWidth, conditionModificationDelegated, dataLoader, icon, queryCondition, TRUNCATED_CAPTION_STYLENAME, uiComponents, valueComponentFields inherited from class io.jmix.ui.component.CompositeComponent
applicationContext, frame, id, prefixId, rootFields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZEFields inherited from interface io.jmix.searchui.component.FullTextFilter
NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ConditionReturns aSearchStrategythat will be used for searching using this component.protected voidinitRootComponent(HBoxLayout root) voidsetDataLoader(DataLoader dataLoader) Sets aDataLoaderrelated to the current filter component.voidsetEntitySearcher(EntitySearcher entitySearcher) voidsetIdSerialization(IdSerialization idSerialization) voidsetJpqlFilterSupport(JpqlFilterSupport jpqlFilterSupport) voidsetParameterName(String parameterName) Sets the name of the associated query parameter name.voidsetSearchStrategy(SearchStrategy searchStrategy) voidsetSearchStrategyManager(SearchStrategyManager searchStrategyManager) protected voidupdateQueryCondition(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, 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, updateCaptionLabelTruncation, updateCaptionLayout, updateChildAlignment, updateDataLoaderCondition, updateIcon, validateMethods 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, withUnwrappedCompositionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, withUnwrappedCompositionMethods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrameMethods inherited from interface io.jmix.ui.component.Component.Editable
isEditable, isEditableWithParent, setEditableMethods inherited from interface io.jmix.ui.component.Component.Focusable
focus, getTabIndex, isFocusable, setFocusable, setTabIndexMethods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, setIcon, setIconFromSetMethods inherited from interface io.jmix.ui.component.CompositeWithDescription
getDescription, setDescriptionMethods inherited from interface io.jmix.ui.component.CompositeWithHtmlCaption
isCaptionAsHtmlMethods inherited from interface io.jmix.ui.component.CompositeWithHtmlDescription
isDescriptionAsHtml, setDescriptionAsHtmlMethods inherited from interface io.jmix.ui.component.FilterComponent
apply, isAutoApply, isConditionModificationDelegated, setAutoApply, setConditionModificationDelegatedMethods inherited from interface io.jmix.ui.component.HasContextHelp
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledMethods inherited from interface io.jmix.ui.component.HasHtmlSanitizer
isHtmlSanitizerEnabled, setHtmlSanitizerEnabledMethods inherited from interface io.jmix.ui.component.HasValue
addValueChangeListener, clear, getEmptyValue, getValue, isEmpty, setValueMethods inherited from interface io.jmix.ui.component.Requirable
getRequiredMessage, isRequired, setRequired, setRequiredMessageMethods inherited from interface io.jmix.ui.component.SingleFilterComponent
getCaptionWidth, getCaptionWidthSizeUnit, getValueComponent, isCaptionVisible, setCaptionVisible, setCaptionWidth, setValueComponentMethods inherited from interface io.jmix.ui.component.SupportsCaptionPosition
getCaptionPosition, setCaptionPositionMethods inherited from interface io.jmix.ui.component.Validatable
isValid, isValidateOnCommit, validate
-
Field Details
-
FULL_TEXT_FILTER_STYLENAME
- See Also:
-
jpqlFilterSupport
-
entitySearcher
-
idSerialization
-
parameterName
-
searchStrategy
-
searchStrategyManager
-
correctWhere
-
-
Constructor Details
-
FullTextFilterImpl
public FullTextFilterImpl()
-
-
Method Details
-
setJpqlFilterSupport
-
setEntitySearcher
-
setIdSerialization
-
setSearchStrategyManager
-
initRootComponent
- Overrides:
initRootComponentin classAbstractSingleFilterComponent<String>
-
setDataLoader
Description copied from interface:FilterComponentSets aDataLoaderrelated to the current filter component.- Specified by:
setDataLoaderin interfaceFilterComponent- Overrides:
setDataLoaderin classAbstractSingleFilterComponent<String>- Parameters:
dataLoader- aDataLoaderto set
-
createQueryCondition
- Specified by:
createQueryConditionin classAbstractSingleFilterComponent<String>
-
getInnerComponentPrefix
- Specified by:
getInnerComponentPrefixin classAbstractSingleFilterComponent<String>
-
updateQueryCondition
- Specified by:
updateQueryConditionin classAbstractSingleFilterComponent<String>
-
getQueryCondition
- Specified by:
getQueryConditionin interfaceFilterComponent- Overrides:
getQueryConditionin classAbstractSingleFilterComponent<String>- Returns:
- a
Conditionrelated to the current filter component
-
getDataLoader
- Specified by:
getDataLoaderin interfaceFilterComponent- Overrides:
getDataLoaderin classAbstractSingleFilterComponent<String>- Returns:
- a
DataLoaderrelated to the current filter component
-
getParameterName
- Specified by:
getParameterNamein interfaceSingleFilterComponent<String>- Returns:
- the name of the associated query parameter name
-
setParameterName
Description copied from interface:SingleFilterComponentSets the name of the associated query parameter name.- Specified by:
setParameterNamein interfaceSingleFilterComponent<String>- Parameters:
parameterName- a name of the associated query parameter name
-
getSearchStrategy
Description copied from interface:FullTextFilterReturns aSearchStrategythat 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:
getSearchStrategyin interfaceFullTextFilter- Returns:
- a
SearchStrategyor null if the strategy is not explicitly set - See Also:
-
setSearchStrategy
- Specified by:
setSearchStrategyin interfaceFullTextFilter
-