Package io.jmix.ui.app.filter.condition
Class AddConditionScreen
java.lang.Object
io.jmix.ui.screen.Screen
io.jmix.ui.screen.StandardLookup<FilterCondition>
io.jmix.ui.app.filter.condition.AddConditionScreen
- All Implemented Interfaces:
FrameOwner
,LookupScreen<FilterCondition>
,MultiSelectLookupScreen
@UiController("ui_AddConditionScreen")
@UiDescriptor("add-condition-screen.xml")
public class AddConditionScreen
extends StandardLookup<FilterCondition>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.screen.Screen
Screen.AfterCloseEvent, Screen.AfterDetachEvent, Screen.AfterInitEvent, Screen.AfterShowEvent, Screen.BeforeCloseEvent, Screen.BeforeShowEvent, Screen.InitEvent
Nested classes/interfaces inherited from interface io.jmix.ui.screen.LookupScreen
LookupScreen.ValidationContext<T>
-
Field Summary
Modifier and TypeFieldDescriptionprotected AccessManager
protected List<FilterCondition>
protected PopupButton
protected Filter.Configuration
protected FilterComponents
protected CollectionLoader<FilterCondition>
protected Tree<FilterCondition>
protected MetaClass
protected List<FilterCondition>
protected LogicalFilterSupport
protected Messages
protected MessageTools
protected Metadata
protected HeaderFilterCondition
protected PropertyFilterSupport
protected List<FilterCondition>
protected ScreenBuilders
Fields inherited from class io.jmix.ui.screen.StandardLookup
selectHandler, selectValidator
Fields inherited from interface io.jmix.ui.screen.FrameOwner
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
Fields inherited from interface io.jmix.ui.screen.LookupScreen
LOOKUP_CANCEL_ACTION_ID, LOOKUP_ENTER_PRESSED_ACTION_ID, LOOKUP_ITEM_CLICK_ACTION_ID, LOOKUP_SELECT_ACTION_ID, LOOKUP_SELECT_CLOSE_ACTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addParentToExpand
(FilterCondition child) protected void
applyScreenConfigurer
(Screen editScreen) protected FilterCondition
createFilterCondition
(Class<? extends FilterCondition> modelClass) protected Action
createPopupAction
(String editScreenId, Class modelClass) protected List<FilterCondition>
filterConditionsDlLoadDelegate
(LoadContext<FilterCondition> loadContext) protected void
findConditionsRecursively
(List<FilterCondition> conditions, String searchValue, boolean addChildrenAutomatically) protected HeaderFilterCondition
getHeaderFilterConditionByCaption
(String caption) protected void
protected void
protected void
onAfterShow
(Screen.AfterShowEvent event) protected void
protected void
onEditScreenAfterCommit
(Screen.AfterCloseEvent afterCloseEvent) protected void
protected List<FilterCondition>
searchChildren
(FilterCondition condition) protected List<FilterCondition>
searchRootConditions
(List<FilterCondition> conditions) void
setConditions
(List<FilterCondition> conditions) void
setCurrentFilterConfiguration
(Filter.Configuration currentFilterConfiguration) Methods inherited from class io.jmix.ui.screen.StandardLookup
addDefaultCancelAction, addDefaultSelectAction, cancel, getLookupActionsLayout, getLookupComponent, getSelectHandler, getSelectValidator, getWindowActionOptional, initActions, select, select, setLookupComponentMultiSelect, setSelectHandler, setSelectValidator, setupCommitShortcut, setupLookupComponent
Methods inherited from class io.jmix.ui.screen.Screen
addAfterCloseListener, addAfterDetachListener, addAfterInitListener, addAfterShowListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addUrlParamsChangeListener, close, close, closeWithDefaultAction, fireEvent, getApplicationContext, getEventHub, getExtensions, getId, getScreenData, getUiEventListeners, getWindow, isMultipleOpen, isSameScreen, setApplicationContext, setExtensions, setId, setScreenData, setUiEventListeners, setWindow, show
-
Field Details
-
messages
-
messageTools
-
metadata
-
screenBuilders
-
filterComponents
-
accessManager
-
propertyFilterSupport
-
logicalFilterSupport
-
filterConditionsDl
-
filterConditionsTree
-
createPopupButton
-
conditionCaptionFilterField
-
conditions
-
rootConditions
-
foundConditions
-
filterMetaClass
-
propertiesHeaderCondition
-
currentFilterConfiguration
-
-
Constructor Details
-
AddConditionScreen
public AddConditionScreen()
-
-
Method Details
-
getConditions
-
setConditions
-
getCurrentFilterConfiguration
-
setCurrentFilterConfiguration
-
filterConditionsDlLoadDelegate
@Install(to="filterConditionsDl", target=DATA_LOADER) protected List<FilterCondition> filterConditionsDlLoadDelegate(LoadContext<FilterCondition> loadContext) -
onAfterShow
-
initFilterConditionsTree
protected void initFilterConditionsTree() -
initCreatePopupButton
protected void initCreatePopupButton() -
createPopupAction
-
applyScreenConfigurer
-
onEditScreenAfterCommit
-
createFilterCondition
-
getHeaderFilterConditionByCaption
-
onConditionCaptionFilterFieldValueChange
@Subscribe("conditionCaptionFilterField") protected void onConditionCaptionFilterFieldValueChange(HasValue.ValueChangeEvent<String> event) -
searchRootConditions
-
search
-
findConditionsRecursively
protected void findConditionsRecursively(List<FilterCondition> conditions, String searchValue, boolean addChildrenAutomatically) -
searchChildren
-
addParentToExpand
-