public class FilterEditor extends AbstractWindow
io.jmix.ui.screen.Screen.AfterCloseEvent, io.jmix.ui.screen.Screen.AfterDetachEvent, io.jmix.ui.screen.Screen.AfterInitEvent, io.jmix.ui.screen.Screen.AfterShowEvent, io.jmix.ui.screen.Screen.BeforeCloseEvent, io.jmix.ui.screen.Screen.BeforeShowEvent, io.jmix.ui.screen.Screen.InitEvent
Window.BeforeCloseWithCloseButtonEvent, Window.BeforeCloseWithShortcutEvent, Window.CloseListener, Window.CloseWithCommitListener, Window.Editor<T>, Window.HasFoldersPane, Window.Lookup<T>, Window.TopLevelWindow, Window.Wrapper
io.jmix.ui.component.Window.BeforeCloseEvent, io.jmix.ui.component.Window.CloseOrigin, io.jmix.ui.component.Window.Committable, io.jmix.ui.component.Window.ContentSwitchMode, io.jmix.ui.component.Window.HasUserIndicator, io.jmix.ui.component.Window.HasWorkArea
Frame.MessageMode, Frame.MessageType, Frame.NotificationType
Modifier and Type | Field and Description |
---|---|
protected ConditionFrame |
activeConditionFrame |
protected AddConditionHelper |
addConditionHelper |
protected io.jmix.ui.component.CheckBox |
applyDefaultCb |
protected io.jmix.ui.component.Label<java.lang.String> |
applyDefaultLabel |
protected io.jmix.ui.component.CheckBox |
availableForAllCb |
protected io.jmix.ui.component.Label<java.lang.String> |
availableForAllLabel |
protected java.util.List<java.lang.String> |
componentsForHiddenOption |
protected java.util.List<java.lang.String> |
componentsToHideInShortForm |
protected ConditionsTree |
conditions |
protected ConditionsDs |
conditionsDs |
protected io.jmix.ui.component.Tree<AbstractCondition> |
conditionsTree |
protected CustomConditionFrame |
customConditionFrame |
protected io.jmix.ui.component.CheckBox |
defaultCb |
protected io.jmix.ui.component.Label<java.lang.String> |
defaultLabel |
protected DynamicAttributesConditionFrame |
dynamicAttributesConditionFrame |
protected Filter |
filter |
protected FilterEntity |
filterEntity |
protected io.jmix.ui.component.TextField<java.lang.String> |
filterName |
protected io.jmix.ui.component.Label<java.lang.String> |
filterNameLabel |
protected io.jmix.ui.component.GridLayout |
filterPropertiesGrid |
protected FtsConditionFrame |
ftsConditionFrame |
protected static java.lang.String |
GLOBAL_FILTER_PERMISSION |
protected io.jmix.ui.component.CheckBox |
globalDefaultCb |
protected io.jmix.ui.component.Label<java.lang.String> |
globalDefaultLabel |
protected GroupConditionFrame |
groupConditionFrame |
protected java.lang.Boolean |
hideCustomConditions |
protected java.lang.Boolean |
hideDynamicAttributes |
protected Metadata |
metadata |
protected java.util.Set<io.jmix.core.Entity> |
modifiedGlobalDefaultFilters |
protected PropertyConditionFrame |
propertyConditionFrame |
protected Security |
security |
protected java.lang.Boolean |
showConditionHiddenOption |
protected io.jmix.ui.theme.ThemeConstants |
theme |
protected boolean |
treeItemChangeListenerEnabled |
protected UserSessionSource |
userSessionSource |
protected java.lang.Boolean |
useShortConditionForm |
frame, messages, messageTools, UNKNOWN_CLOSE_ACTION_ID
Constructor and Description |
---|
FilterEditor() |
Modifier and Type | Method and Description |
---|---|
void |
addAndGroup() |
void |
addCondition() |
protected void |
addGroup(GroupType groupType) |
void |
addOrGroup() |
void |
cancel() |
protected void |
checkGlobalDefaultAndCloseEditor() |
void |
commitAndClose() |
ConditionsTree |
getConditions() |
ConditionsTree |
getConditionsTree() |
Filter |
getFilter() |
FilterEntity |
getFilterEntity() |
java.util.Set<FilterEntity> |
getModifiedGlobalDefaultFilters() |
protected boolean |
hasEmptyGroupConditions() |
void |
init(java.util.Map<java.lang.String,java.lang.Object> params)
Called by the framework after creation of all components and before showing the screen.
|
void |
moveConditionDown() |
void |
moveConditionUp() |
protected void |
refreshConditionsDs() |
void |
removeCondition() |
void |
showComponentName() |
add, add, addAction, addAction, addBeforeWindowCloseListener, addFacet, addStyleName, afterShow, applyDataLoadingSettings, applySettings, beforeClose, closeWithDiscard, deleteSettings, expand, expand, formatMessage, getAction, getActions, getActionsPermissions, getAlignment, getCaption, getCompanion, getComponent, getComponent, getComponent, getComponents, getComposition, getContentSwitchMode, getContext, getDescription, getDialogOptions, getDsContext, getExpandDirection, getExpandRatio, getFacet, getFacets, getFocusComponent, getFrame, getFrameOwner, getHeight, getHeightSizeUnit, getIcon, getMargin, getMaxHeight, getMaxWidth, getMessage, getMessagesPack, getMinHeight, getMinWidth, getOwnComponent, getOwnComponents, getOwnComponentsStream, getParent, getScreenHashCode, getSettings, getSpacing, getStyleName, getWidth, getWidthSizeUnit, getWindowManager, getWrappedFrame, getWrappedWindow, getXmlDescriptor, handleValidationErrors, hasUnsavedChanges, indexOf, init, initEnableEditingActionStub, isAttributeAccessControlEnabled, isCloseable, isEnabled, isEnabledRecursive, isExpanded, isResponsive, isSameScreen, isValid, isVisible, isVisibleRecursive, onAfterDetach, postValidate, preClose, ready, remove, removeAction, removeAction, removeAll, removeAllActions, removeBeforeWindowCloseListener, removeFacet, removeStyleName, resetExpanded, saveSettings, setAlignment, setCaption, setCloseable, setCompanion, setContentSwitchMode, setDescription, setDsContext, setEnabled, setExpandRatio, setFocusComponent, setFrame, setHeight, setIcon, setIconFromSet, setId, setMargin, setMaxHeight, setMaxWidth, setMessagesPack, setMinHeight, setMinWidth, setParent, setResponsive, setSpacing, setStyleName, setVisible, setWidth, setWindow, setXmlDescriptor, showValidationErrors, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, validate, validate, validateAdditionalRules, validateAll, withUnwrapped, withUnwrappedComposition
addAfterCloseListener, addAfterDetachListener, addAfterInitListener, addAfterShowListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addUrlParamsChangeListener, close, close, closeWithDefaultAction, fireEvent, getApplicationContext, getEventHub, getExtensions, getId, getScreenData, getUiEventListeners, getWindow, isMultipleOpen, setApplicationContext, setExtensions, setScreenData, setUiEventListeners, show
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addBeforeCloseWithCloseButtonListener, addBeforeCloseWithShortcutListener, addCloseListener, addCloseWithCommitListener, addListener, close, close, removeBeforeCloseWithCloseButtonListener, removeBeforeCloseWithShortcutListener, removeCloseListener, removeListener
focusFirstComponent, getComponentNN
openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openFrame, openFrame, openLookup, openLookup, openLookup, openLookup, openWindow, openWindow, showMessageDialog, showNotification, showNotification, showNotification, showOptionDialog, showOptionDialog, showWebPage
protected static final java.lang.String GLOBAL_FILTER_PERMISSION
protected FilterEntity filterEntity
protected Filter filter
@Autowired protected Security security
@Autowired protected ConditionsDs conditionsDs
@Autowired protected io.jmix.ui.component.GridLayout filterPropertiesGrid
@Autowired protected io.jmix.ui.component.TextField<java.lang.String> filterName
@Autowired protected io.jmix.ui.component.Label<java.lang.String> filterNameLabel
@Autowired protected io.jmix.ui.component.CheckBox availableForAllCb
@Autowired protected io.jmix.ui.component.Label<java.lang.String> availableForAllLabel
@Autowired protected io.jmix.ui.component.CheckBox defaultCb
@Autowired protected io.jmix.ui.component.Label<java.lang.String> defaultLabel
@Autowired protected io.jmix.ui.component.CheckBox globalDefaultCb
@Autowired protected io.jmix.ui.component.Label<java.lang.String> globalDefaultLabel
@Autowired protected io.jmix.ui.component.CheckBox applyDefaultCb
@Autowired protected io.jmix.ui.component.Label<java.lang.String> applyDefaultLabel
@Autowired protected DynamicAttributesConditionFrame dynamicAttributesConditionFrame
@Autowired protected CustomConditionFrame customConditionFrame
@Autowired protected PropertyConditionFrame propertyConditionFrame
@Autowired protected GroupConditionFrame groupConditionFrame
@Autowired protected FtsConditionFrame ftsConditionFrame
@Autowired protected io.jmix.ui.component.Tree<AbstractCondition> conditionsTree
@Autowired protected io.jmix.ui.theme.ThemeConstants theme
@Autowired protected UserSessionSource userSessionSource
@Autowired protected Metadata metadata
protected ConditionsTree conditions
protected AddConditionHelper addConditionHelper
protected ConditionFrame activeConditionFrame
protected boolean treeItemChangeListenerEnabled
protected java.lang.Boolean useShortConditionForm
protected java.lang.Boolean hideDynamicAttributes
protected java.lang.Boolean hideCustomConditions
protected java.lang.Boolean showConditionHiddenOption
protected final java.util.List<java.lang.String> componentsToHideInShortForm
protected final java.util.List<java.lang.String> componentsForHiddenOption
protected java.util.Set<io.jmix.core.Entity> modifiedGlobalDefaultFilters
public void init(java.util.Map<java.lang.String,java.lang.Object> params)
AbstractWindow
init
in class AbstractWindow
params
- parameters passed from caller's code, usually from
HasWindowManager.openWindow(String, WindowManager.OpenType)
and similar methods, or set in
screens.xml
for this registered screenpublic ConditionsTree getConditions()
public void commitAndClose()
protected void checkGlobalDefaultAndCloseEditor()
protected boolean hasEmptyGroupConditions()
public void cancel()
public void removeCondition()
public void moveConditionUp()
public void moveConditionDown()
protected void refreshConditionsDs()
public void addAndGroup()
public void addOrGroup()
protected void addGroup(GroupType groupType)
public void addCondition()
public void showComponentName()
public FilterEntity getFilterEntity()
public ConditionsTree getConditionsTree()
public Filter getFilter()
public java.util.Set<FilterEntity> getModifiedGlobalDefaultFilters()