@Component(value="cuba_FilterDelegate") @Scope(value="prototype") public class FilterDelegateImpl extends java.lang.Object implements FilterDelegate
FilterDelegate.FDExpandedStateChangeEvent, FilterDelegate.FilterMode
NAME
Constructor and Description |
---|
FilterDelegateImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAppliedFilter() |
protected void |
addAppliedFilterLayoutHook(ComponentContainer layout) |
protected void |
addCondition(AbstractCondition condition) |
protected void |
addConditionListener(AbstractCondition condition,
Subscription current) |
void |
addFilterEntityChangeListener(Filter.FilterEntityChangeListener listener) |
protected void |
addFiltersPopupActions() |
protected void |
addParamEditor(AbstractCondition condition,
ParamEditor paramEditor) |
protected void |
addResetFilterAction(PopupButton popupButton) |
protected void |
addSetFilterEntityAction(PopupButton popupButton,
FilterEntity fe) |
protected void |
addShowMoreFilterEntitiesAction(PopupButton popupButton) |
boolean |
apply(boolean notifyInvalidConditions) |
boolean |
apply(Filter.FilterOptions options) |
void |
applyDataLoadingSettings(org.dom4j.Element element) |
protected void |
applyDatasourceFilter() |
protected void |
applyFilter() |
protected void |
applyFts() |
protected void |
applyMaxResultsSettings(org.dom4j.Element element) |
void |
applySettings(org.dom4j.Element element) |
protected void |
applyWithImmediateMode() |
protected void |
checkState() |
protected void |
clearParamEditors() |
protected void |
clearParamValueChangeSubscriptions() |
protected void |
completeGridRowWithGaps(GridLayout grid,
int row,
int startColumn,
boolean lastRow)
Adds empty containers to grid row.
|
protected FilterDelegateImpl.ControlsLayoutBuilder |
createControlsLayoutBuilder(java.lang.String layoutDescription) |
protected void |
createControlsLayoutForFts() |
protected void |
createControlsLayoutForGeneric() |
protected void |
createFilterActions() |
protected FilterHelper.ShortcutListener |
createFtsSearchShortcutListener() |
protected void |
createFtsSwitch() |
protected Component |
createGroupConditionBox(AbstractCondition condition,
Node<AbstractCondition> node,
FilterDelegateImpl.ConditionsFocusType conditionsFocusType,
boolean focusSet,
int level) |
void |
createLayout() |
protected void |
createMaxResultsLayout() |
protected ParamEditor |
createParamEditor(AbstractCondition condition,
FilterDataContext filterDataContext) |
protected Pair<ParamEditor,java.lang.RuntimeException> |
createParamEditorWithChecks(AbstractCondition condition,
FilterDataContext filterDataContext) |
protected java.util.List<Node<AbstractCondition>> |
fetchVisibleNodes(java.util.List<Node<AbstractCondition>> nodes) |
protected void |
fillConditionsLayout(FilterDelegateImpl.ConditionsFocusType conditionsFocusType)
Removes all components from conditionsLayout and fills it with components for editing filter conditions
|
protected void |
fillTableActions()
Adds actions of 'Entities Set' functionality to Table component
|
protected int |
findClosestValue(int maxResults,
java.util.List<java.lang.Integer> optionsList) |
protected void |
fireExpandStateChange(boolean userOriginated) |
protected java.lang.String |
formatMainMessage(java.lang.String key,
java.lang.Object... params) |
void |
frameAssigned(Frame frame) |
Filter.AfterFilterAppliedHandler |
getAfterFilterAppliedHandler() |
Component |
getApplyTo() |
Filter.BeforeFilterAppliedHandler |
getBeforeFilterAppliedHandler() |
java.lang.String |
getCaption() |
java.lang.Integer |
getColumnsCount() |
Component |
getComponent(java.lang.String id) |
ConditionsTree |
getConditionsTree() |
protected java.lang.String |
getControlsLayoutStyleName() |
java.lang.String |
getControlsLayoutTemplate() |
BaseCollectionLoader |
getDataLoader() |
CollectionDatasource |
getDatasource() |
protected FilterEntity |
getDefaultFilter(java.util.List<FilterEntity> filters) |
protected Dialogs |
getDialogs() |
java.lang.String |
getEntityAlias() |
MetaClass |
getEntityMetaClass() |
protected java.lang.String |
getFilterCaption(FilterEntity filterEntity) |
FilterEntity |
getFilterEntity() |
java.util.List<Filter.FilterEntityChangeListener> |
getFilterEntityChangeListeners() |
java.lang.String |
getIcon() |
ComponentContainer |
getLayout() |
protected java.lang.String |
getMainMessage(java.lang.String key) |
java.lang.Boolean |
getManualApplyRequired() |
int |
getMaxResults() |
protected Notifications |
getNotifications() |
Component |
getOwnComponent(java.lang.String id) |
java.lang.Object |
getParamValue(java.lang.String paramName) |
protected boolean |
getResultingManualApplyRequired() |
protected java.lang.String |
getSearchBtnCaption() |
boolean |
getTextMaxResults() |
boolean |
getUseMaxResults() |
protected Window |
getWindow() |
protected WindowManager |
getWindowManager() |
protected boolean |
hasCorrectCondition() |
protected boolean |
haveFilledRequiredConditions() |
void |
init() |
protected void |
initAdHocFilter() |
protected void |
initDatasourceMaxResults()
The method is invoked before search.
|
protected void |
initFilterSelectComponents() |
protected void |
initFiltersLookup() |
protected void |
initFiltersPopupButton() |
protected void |
initFtsDetailsAction(ListComponent listComponent,
java.lang.String searchTerm) |
protected void |
initMaxResults() |
protected void |
initShortcutActions() |
boolean |
isApplyImmediately() |
boolean |
isBorderVisible() |
boolean |
isCollapsable() |
boolean |
isEditable() |
protected boolean |
isEntityAvailableForFts() |
boolean |
isExpanded() |
protected boolean |
isFilterModified() |
boolean |
isFolderActionsEnabled() |
protected boolean |
isFtsModeEnabled() |
protected boolean |
isMaxResultsLayoutVisible() |
protected boolean |
isParamEditorOperationEditable() |
boolean |
isWindowCaptionUpdateEnabled() |
protected void |
loadFilterEntities()
Load filter entities from database and saves them in
filterEntities collection. |
void |
loadFiltersAndApplyDefault()
Loads filter entities, finds default filter and applies it if found
|
protected void |
onMaxResultsChange(HasValue.ValueChangeEvent<java.lang.Integer> event) |
protected void |
openFilterSelectMenu() |
protected java.util.Map<java.lang.String,java.lang.Object> |
prepareDatasourceCustomParams() |
protected void |
recursivelyCreateConditionsLayout(FilterDelegateImpl.ConditionsFocusType conditionsFocusType,
boolean initialFocusSet,
java.util.List<Node<AbstractCondition>> nodes,
ComponentContainer parentContainer,
int level) |
protected void |
refreshDatasource(java.util.Map<java.lang.String,java.lang.Object> parameters)
extenders should be able to modify the datasource before it will be refreshed
|
protected void |
removeAppliedFilter() |
protected void |
removeFilterEntity() |
void |
requestFocus() |
protected void |
requestFocusToParamEditComponent() |
protected void |
resetDefaultFilters()
Method sets default = false to all filters except the current one
|
protected void |
saveAsFolder(boolean isAppFolder) |
protected void |
saveFilterEntity() |
protected AbstractSearchFolder |
saveFolder(AbstractSearchFolder folder) |
protected void |
saveInitialFilterState()
Saves initial filter state.
|
boolean |
saveSettings(org.dom4j.Element element) |
void |
setAfterFilterAppliedHandler(Filter.AfterFilterAppliedHandler afterFilterAppliedHandler) |
void |
setApplyImmediately(boolean immediately) |
void |
setApplyTo(Component applyTo) |
void |
setBeforeFilterAppliedHandler(Filter.BeforeFilterAppliedHandler beforeFilterAppliedHandler) |
void |
setBorderVisible(boolean visible) |
void |
setCaption(java.lang.String caption) |
void |
setCaptionChangedListener(java.util.function.Consumer<java.lang.String> captionChangedListener) |
void |
setCollapsable(boolean collapsable) |
void |
setColumnsCount(int columnsCount) |
protected void |
setConditionsLayoutVisible(boolean visible)
Sets conditionsLayout visibility and shows/hides top border of controlsLayout
|
void |
setControlsLayoutTemplate(java.lang.String controlsLayoutTemplate) |
void |
setDataLoader(BaseCollectionLoader dataLoader) |
void |
setDatasource(CollectionDatasource datasource) |
void |
setEditable(boolean editable) |
void |
setExpanded(boolean expanded) |
void |
setExpandedStateChangeListener(java.util.function.Consumer<FilterDelegate.FDExpandedStateChangeEvent> listener) |
void |
setFilter(Filter filter) |
protected void |
setFilterActionsEnabled() |
protected void |
setFilterActionsVisible() |
void |
setFilterEntity(FilterEntity filterEntity)
Sets filter entity, creates condition editor components and applies filter if necessary
|
void |
setFolderActionsEnabled(boolean folderActionsEnabled) |
void |
setIcon(java.lang.String icon) |
void |
setManualApplyRequired(java.lang.Boolean manualApplyRequired) |
void |
setMaxResults(int maxResults) |
void |
setModeSwitchVisible(boolean modeSwitchVisible) |
void |
setParamValue(java.lang.String paramName,
java.lang.Object value) |
void |
setScreenBuilders(ScreenBuilders screenBuilders) |
void |
setTextMaxResults(boolean textMaxResults) |
void |
setUseMaxResults(boolean useMaxResults) |
void |
setWindowCaptionUpdateEnabled(boolean windowCaptionUpdateEnabled) |
protected void |
subscribeToParamValueChangeEventRecursively(java.util.List<Node<AbstractCondition>> conditions) |
protected boolean |
suitableCondition(AbstractCondition condition) |
void |
switchFilterMode(FilterDelegate.FilterMode filterMode) |
protected boolean |
uerCanEditGlobalFilter() |
protected void |
updateControlsLayout(Frame frame) |
protected void |
updateFilterModifiedIndicator() |
protected void |
updateSettingsBtn(Frame frame) |
protected void |
updateWindowCaption() |
protected boolean |
userCanEditFilers() |
protected static final java.lang.String BORDER_HIDDEN_STYLENAME
protected static final java.lang.String GLOBAL_FILTER_PERMISSION
protected static final java.lang.String GLOBAL_APP_FOLDERS_PERMISSION
protected static final java.lang.String FILTER_EDIT_PERMISSION
protected static final java.lang.String CONDITIONS_LOCATION_TOP
protected static final org.slf4j.Logger log
protected static final java.lang.String MODIFIED_INDICATOR_SYMBOL
@Inject protected UiComponents uiComponents
@Inject protected ThemeConstantsManager themeConstantsManager
@Inject protected Messages messages
@Inject protected Metadata metadata
@Inject protected WindowConfig windowConfig
@Inject protected UserSessionSource userSessionSource
@Inject protected Configuration configuration
@Inject protected Security security
@Inject protected FilterHelper filterHelper
@Inject protected FilterParser filterParser
@Inject protected MaxResultsFieldHelper maxResultsFieldHelper
protected ScreenBuilders screenBuilders
@Inject protected Dom4jTools dom4JTools
@Inject protected DataService dataService
@Inject protected PersistenceManagerClient persistenceManager
@Inject protected ClientConfig clientConfig
@Inject protected GlobalConfig globalConfig
@Inject protected BeanLocator beanLocator
protected FtsFilterHelper ftsFilterHelper
protected AddConditionHelper addConditionHelper
protected ThemeConstants theme
protected Filter filter
protected FilterEntity adHocFilter
protected ConditionsTree conditions
protected ConditionsTree prevConditions
protected java.util.List<AbstractCondition> initialConditions
protected FilterEntity filterEntity
protected FilterEntity initialFilterEntity
protected CollectionDatasource datasource
protected BaseCollectionLoader dataLoader
protected FilterDelegateImpl.Adapter adapter
protected QueryFilter dsQueryFilter
protected java.util.List<FilterEntity> filterEntities
protected AppliedFilter lastAppliedFilter
protected java.util.LinkedList<FilterDelegateImpl.AppliedFilterHolder> appliedFilters
protected java.util.List<Filter.FilterEntityChangeListener> filterEntityChangeListeners
protected GroupBoxLayout groupBoxLayout
protected GroupBoxLayout layout
protected PopupButton filtersPopupButton
protected ComponentContainer conditionsLayout
protected BoxLayout maxResultsLayout
protected Field<java.lang.Integer> maxResultsField
protected TextField<java.lang.Integer> maxResultsTextField
protected LookupField<java.lang.Integer> maxResultsLookupField
protected BoxLayout controlsLayout
protected ComponentContainer appliedFiltersLayout
protected PopupButton settingsBtn
protected Component applyTo
protected FilterDelegateImpl.SaveAction saveAction
protected FilterDelegateImpl.SaveAction saveWithValuesAction
protected TextField<java.lang.String> ftsSearchCriteriaField
protected CheckBox ftsSwitch
protected LinkButton addConditionBtn
protected ComponentContainer filtersPopupBox
protected Button searchBtn
protected Component controlsLayoutGap
protected java.lang.Object paramEditComponentToFocus
protected java.lang.String caption
protected int maxResults
protected boolean useMaxResults
protected boolean textMaxResults
protected boolean maxResultValueChanged
protected boolean groupBoxExpandedChanged
protected java.lang.Boolean manualApplyRequired
protected boolean folderActionsEnabled
protected boolean filtersLookupListenerEnabled
protected boolean filtersPopupDisplayed
protected boolean filtersLookupDisplayed
protected boolean maxResultsAddedToLayout
protected boolean editable
protected FilterDelegate.FilterMode filterMode
protected boolean filterSavingPossible
protected java.lang.Integer columnsCount
protected java.lang.String initialWindowCaption
protected java.lang.String conditionsLocation
protected boolean filterActionsCreated
protected boolean delayedFocus
protected boolean modeSwitchVisible
protected FilterDelegateImpl.SaveAsAction saveAsAction
protected FilterDelegateImpl.EditAction editAction
protected FilterDelegateImpl.MakeDefaultAction makeDefaultAction
protected FilterDelegateImpl.RemoveAction removeAction
protected FilterDelegateImpl.ClearValuesAction clearValuesAction
protected FilterDelegateImpl.PinAppliedAction pinAppliedAction
protected FilterDelegateImpl.SaveAsFolderAction saveAsAppFolderAction
protected FilterDelegateImpl.SaveAsFolderAction saveAsSearchFolderAction
protected LookupField<FilterEntity> filtersLookup
protected java.util.function.Consumer<FilterDelegate.FDExpandedStateChangeEvent> expandedStateChangeListener
protected Filter.BeforeFilterAppliedHandler beforeFilterAppliedHandler
protected Filter.AfterFilterAppliedHandler afterFilterAppliedHandler
protected boolean borderVisible
protected java.util.Set<java.lang.String> ftsLastDatasourceRefreshParamsNames
protected java.util.function.Consumer<java.lang.String> captionChangedListener
protected boolean windowCaptionUpdateEnabled
protected java.util.List<Subscription> paramValueChangeSubscriptions
protected java.util.Map<AbstractCondition,AbstractCondition.Listener> conditionListeners
protected java.util.Map<AbstractCondition,ParamEditor> paramEditors
protected java.lang.Boolean applyImmediately
protected java.lang.String controlsLayoutTemplate
@Inject public void setScreenBuilders(ScreenBuilders screenBuilders)
@PostConstruct public void init()
public void createLayout()
createLayout
in interface FilterDelegate
protected void createControlsLayoutForGeneric()
protected void createControlsLayoutForFts()
protected FilterHelper.ShortcutListener createFtsSearchShortcutListener()
protected void createFtsSwitch()
public void switchFilterMode(FilterDelegate.FilterMode filterMode)
switchFilterMode
in interface FilterDelegate
protected void createMaxResultsLayout()
protected void onMaxResultsChange(HasValue.ValueChangeEvent<java.lang.Integer> event)
public void setBorderVisible(boolean visible)
setBorderVisible
in interface FilterDelegate
public boolean isBorderVisible()
isBorderVisible
in interface FilterDelegate
public void loadFiltersAndApplyDefault()
loadFiltersAndApplyDefault
in interface FilterDelegate
protected boolean suitableCondition(AbstractCondition condition)
public void setFilterEntity(FilterEntity filterEntity)
setFilterEntity
in interface FilterDelegate
public FilterEntity getFilterEntity()
getFilterEntity
in interface FilterDelegate
protected Window getWindow()
protected void saveInitialFilterState()
protected void setConditionsLayoutVisible(boolean visible)
protected void setFilterActionsEnabled()
protected void setFilterActionsVisible()
protected void createFilterActions()
protected boolean uerCanEditGlobalFilter()
protected boolean userCanEditFilers()
protected void saveFilterEntity()
@Nullable protected AbstractSearchFolder saveFolder(AbstractSearchFolder folder)
protected void saveAsFolder(boolean isAppFolder)
protected void fillConditionsLayout(FilterDelegateImpl.ConditionsFocusType conditionsFocusType)
conditionsFocusType
- where to set focus (first condition, last condition, no focus)protected void recursivelyCreateConditionsLayout(FilterDelegateImpl.ConditionsFocusType conditionsFocusType, boolean initialFocusSet, java.util.List<Node<AbstractCondition>> nodes, ComponentContainer parentContainer, int level)
protected void addParamEditor(AbstractCondition condition, ParamEditor paramEditor)
protected void clearParamEditors()
protected java.util.List<Node<AbstractCondition>> fetchVisibleNodes(java.util.List<Node<AbstractCondition>> nodes)
protected Component createGroupConditionBox(AbstractCondition condition, Node<AbstractCondition> node, FilterDelegateImpl.ConditionsFocusType conditionsFocusType, boolean focusSet, int level)
protected Pair<ParamEditor,java.lang.RuntimeException> createParamEditorWithChecks(AbstractCondition condition, FilterDataContext filterDataContext)
protected ParamEditor createParamEditor(AbstractCondition condition, FilterDataContext filterDataContext)
protected boolean isParamEditorOperationEditable()
protected void completeGridRowWithGaps(GridLayout grid, int row, int startColumn, boolean lastRow)
protected java.lang.String getControlsLayoutStyleName()
protected boolean isFilterModified()
protected void updateFilterModifiedIndicator()
protected void loadFilterEntities()
filterEntities
collection.protected FilterEntity getDefaultFilter(java.util.List<FilterEntity> filters)
protected void initFiltersPopupButton()
protected void addFiltersPopupActions()
protected void addSetFilterEntityAction(PopupButton popupButton, FilterEntity fe)
protected void addShowMoreFilterEntitiesAction(PopupButton popupButton)
protected void addResetFilterAction(PopupButton popupButton)
protected void initFiltersLookup()
protected void initFilterSelectComponents()
protected void initAdHocFilter()
protected void addAppliedFilter()
protected void addAppliedFilterLayoutHook(ComponentContainer layout)
protected void removeAppliedFilter()
protected java.lang.String getFilterCaption(FilterEntity filterEntity)
protected java.lang.String formatMainMessage(java.lang.String key, java.lang.Object... params)
protected java.lang.String getMainMessage(java.lang.String key)
public ComponentContainer getLayout()
getLayout
in interface FilterDelegate
public MetaClass getEntityMetaClass()
getEntityMetaClass
in interface FilterDelegate
public java.lang.String getEntityAlias()
getEntityAlias
in interface FilterDelegate
public void setDatasource(CollectionDatasource datasource)
setDatasource
in interface FilterDelegate
public BaseCollectionLoader getDataLoader()
getDataLoader
in interface FilterDelegate
public void setDataLoader(BaseCollectionLoader dataLoader)
setDataLoader
in interface FilterDelegate
public CollectionDatasource getDatasource()
getDatasource
in interface FilterDelegate
protected void initMaxResults()
protected void checkState()
protected int findClosestValue(int maxResults, java.util.List<java.lang.Integer> optionsList)
protected boolean isFtsModeEnabled()
protected boolean isEntityAvailableForFts()
public int getMaxResults()
getMaxResults
in interface FilterDelegate
public void setMaxResults(int maxResults)
setMaxResults
in interface FilterDelegate
public void setUseMaxResults(boolean useMaxResults)
setUseMaxResults
in interface FilterDelegate
protected boolean isMaxResultsLayoutVisible()
public boolean getUseMaxResults()
getUseMaxResults
in interface FilterDelegate
public void setTextMaxResults(boolean textMaxResults)
setTextMaxResults
in interface FilterDelegate
public boolean getTextMaxResults()
getTextMaxResults
in interface FilterDelegate
public boolean apply(Filter.FilterOptions options)
apply
in interface FilterDelegate
protected void applyWithImmediateMode()
public boolean apply(boolean notifyInvalidConditions)
apply
in interface FilterDelegate
protected java.util.Map<java.lang.String,java.lang.Object> prepareDatasourceCustomParams()
protected void applyFts()
protected void initFtsDetailsAction(ListComponent listComponent, java.lang.String searchTerm)
protected void initDatasourceMaxResults()
maxResults
value based on the maxResults field (if visible) or on maxFetchUI
value. Method also resets the datasource firstResult
valueprotected void applyDatasourceFilter()
protected boolean haveFilledRequiredConditions()
protected boolean hasCorrectCondition()
protected void refreshDatasource(java.util.Map<java.lang.String,java.lang.Object> parameters)
public java.lang.String getCaption()
getCaption
in interface FilterDelegate
public void setCaption(java.lang.String caption)
setCaption
in interface FilterDelegate
public java.lang.String getIcon()
getIcon
in interface FilterDelegate
public void setIcon(java.lang.String icon)
setIcon
in interface FilterDelegate
public void setManualApplyRequired(java.lang.Boolean manualApplyRequired)
setManualApplyRequired
in interface FilterDelegate
public java.lang.Boolean getManualApplyRequired()
getManualApplyRequired
in interface FilterDelegate
protected boolean getResultingManualApplyRequired()
public Component getOwnComponent(java.lang.String id)
getOwnComponent
in interface FilterDelegate
@Nullable public Component getComponent(java.lang.String id)
getComponent
in interface FilterDelegate
public void applySettings(org.dom4j.Element element)
applySettings
in interface FilterDelegate
public void applyDataLoadingSettings(org.dom4j.Element element)
applyDataLoadingSettings
in interface FilterDelegate
protected void applyMaxResultsSettings(org.dom4j.Element element)
public boolean saveSettings(org.dom4j.Element element)
saveSettings
in interface FilterDelegate
public Component getApplyTo()
getApplyTo
in interface FilterDelegate
public void setApplyTo(Component applyTo)
setApplyTo
in interface FilterDelegate
public void setFolderActionsEnabled(boolean folderActionsEnabled)
setFolderActionsEnabled
in interface FilterDelegate
public boolean isFolderActionsEnabled()
isFolderActionsEnabled
in interface FilterDelegate
protected void fillTableActions()
public void setEditable(boolean editable)
setEditable
in interface FilterDelegate
public boolean isEditable()
isEditable
in interface FilterDelegate
public java.lang.Object getParamValue(java.lang.String paramName)
getParamValue
in interface FilterDelegate
public void setParamValue(java.lang.String paramName, java.lang.Object value)
setParamValue
in interface FilterDelegate
public void addFilterEntityChangeListener(Filter.FilterEntityChangeListener listener)
addFilterEntityChangeListener
in interface FilterDelegate
public java.util.List<Filter.FilterEntityChangeListener> getFilterEntityChangeListeners()
getFilterEntityChangeListeners
in interface FilterDelegate
public java.lang.Integer getColumnsCount()
getColumnsCount
in interface FilterDelegate
public void setColumnsCount(int columnsCount)
setColumnsCount
in interface FilterDelegate
public boolean isExpanded()
isExpanded
in interface FilterDelegate
public void setExpanded(boolean expanded)
setExpanded
in interface FilterDelegate
public boolean isCollapsable()
isCollapsable
in interface FilterDelegate
public void setCollapsable(boolean collapsable)
setCollapsable
in interface FilterDelegate
public void setModeSwitchVisible(boolean modeSwitchVisible)
setModeSwitchVisible
in interface FilterDelegate
public void requestFocus()
requestFocus
in interface FilterDelegate
protected void requestFocusToParamEditComponent()
public void setExpandedStateChangeListener(java.util.function.Consumer<FilterDelegate.FDExpandedStateChangeEvent> listener)
setExpandedStateChangeListener
in interface FilterDelegate
protected void fireExpandStateChange(boolean userOriginated)
public void setFilter(Filter filter)
setFilter
in interface FilterDelegate
protected void addCondition(AbstractCondition condition)
protected void initShortcutActions()
protected void applyFilter()
protected void openFilterSelectMenu()
protected void updateWindowCaption()
public boolean isWindowCaptionUpdateEnabled()
isWindowCaptionUpdateEnabled
in interface FilterDelegate
public void setWindowCaptionUpdateEnabled(boolean windowCaptionUpdateEnabled)
setWindowCaptionUpdateEnabled
in interface FilterDelegate
protected FilterDelegateImpl.ControlsLayoutBuilder createControlsLayoutBuilder(java.lang.String layoutDescription)
protected void resetDefaultFilters()
public Filter.BeforeFilterAppliedHandler getBeforeFilterAppliedHandler()
getBeforeFilterAppliedHandler
in interface FilterDelegate
public void setBeforeFilterAppliedHandler(Filter.BeforeFilterAppliedHandler beforeFilterAppliedHandler)
setBeforeFilterAppliedHandler
in interface FilterDelegate
public Filter.AfterFilterAppliedHandler getAfterFilterAppliedHandler()
getAfterFilterAppliedHandler
in interface FilterDelegate
public void setAfterFilterAppliedHandler(Filter.AfterFilterAppliedHandler afterFilterAppliedHandler)
setAfterFilterAppliedHandler
in interface FilterDelegate
public void setCaptionChangedListener(java.util.function.Consumer<java.lang.String> captionChangedListener)
setCaptionChangedListener
in interface FilterDelegate
public void frameAssigned(Frame frame)
frameAssigned
in interface FilterDelegate
protected void updateSettingsBtn(Frame frame)
protected void updateControlsLayout(Frame frame)
public ConditionsTree getConditionsTree()
getConditionsTree
in interface FilterDelegate
public void setApplyImmediately(boolean immediately)
setApplyImmediately
in interface FilterDelegate
public boolean isApplyImmediately()
isApplyImmediately
in interface FilterDelegate
public java.lang.String getControlsLayoutTemplate()
getControlsLayoutTemplate
in interface FilterDelegate
public void setControlsLayoutTemplate(java.lang.String controlsLayoutTemplate)
setControlsLayoutTemplate
in interface FilterDelegate
protected void clearParamValueChangeSubscriptions()
protected void subscribeToParamValueChangeEventRecursively(java.util.List<Node<AbstractCondition>> conditions)
protected void addConditionListener(AbstractCondition condition, Subscription current)
protected java.lang.String getSearchBtnCaption()
protected void removeFilterEntity()
@Nullable protected WindowManager getWindowManager()
protected Notifications getNotifications()
protected Dialogs getDialogs()