public class FilterEditor extends AbstractWindow
| Modifier and Type | Class and Description |
|---|---|
static interface |
FilterEditor.Companion |
Screen.AfterCloseEvent, Screen.AfterDetachEvent, Screen.AfterInitEvent, Screen.AfterShowEvent, Screen.BeforeCloseEvent, Screen.BeforeShowEvent, Screen.InitEventWindow.BeforeCloseEvent, Window.BeforeCloseWithCloseButtonEvent, Window.BeforeCloseWithShortcutEvent, Window.CloseListener, Window.CloseOrigin, Window.CloseWithCommitListener, Window.Committable, Window.ContentSwitchMode, Window.Editor<T extends Entity>, Window.HasFoldersPane, Window.HasUserIndicator, Window.HasWorkArea, Window.Lookup<T extends Entity>, Window.TopLevelWindow, Window.WrapperFrame.MessageMode, Frame.MessageType, Frame.NotificationTypeExpandingLayout.ExpandDirectionComponent.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.OptionsStyleProviderframe, messages, UNKNOWN_CLOSE_ACTION_IDBROWSE_WINDOW_SUFFIX, CLOSE_ACTION_ID, COMMIT_ACTION_ID, CREATE_WINDOW_SUFFIX, EDITOR_WINDOW_SUFFIX, LOOKUP_WINDOW_SUFFIX, NAME, SELECT_ACTION_IDAUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE, UNITS_PERCENTAGE, UNITS_PIXELSNO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION| 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, addTimer, afterShow, 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, getTimer, getWidth, getWidthSizeUnit, getWindowManager, getWrappedFrame, getWrappedWindow, getXmlDescriptor, handleValidationErrors, hasUnsavedChanges, indexOf, init, initEnableEditingActionStub, isAttributeAccessControlEnabled, isCloseable, isEnabled, isEnabledRecursive, isExpanded, isResponsive, isSameScreen, isValid, isVisible, isVisibleRecursive, 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, withUnwrappedCompositionaddAfterCloseListener, addAfterDetachListener, addAfterInitListener, addAfterShowListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addUrlParamsChangeListener, applyDataLoadingSettings, close, close, closeWithDefaultAction, fireEvent, getBeanLocator, getEventHub, getExtensions, getId, getScreenData, getUiEventListeners, getWindow, isMultipleOpen, isSaveScreenHistoryOnClose, isSaveSettingsOnClose, setBeanLocator, setExtensions, setScreenData, setUiEventListeners, showclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddBeforeCloseWithCloseButtonListener, addBeforeCloseWithShortcutListener, addCloseListener, addCloseWithCommitListener, addListener, close, close, closeAndRun, removeBeforeCloseWithCloseButtonListener, removeBeforeCloseWithShortcutListener, removeCloseListener, removeCloseWithCommitListener, removeListenergetFacetNNgetComponentNNadd, focusFirstComponent, getComponentNN, removegetHeightUnits, getId, getWidthUnits, isEnabledItself, isVisibleItself, requestFocus, setHeightAuto, setHeightFull, setSizeAuto, setSizeFull, setWidthAuto, setWidthFullgetActionNN, getSubPartopenEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openFrame, openFrame, openLookup, openLookup, openLookup, openLookup, openWindow, openWindow, showMessageDialog, showNotification, showNotification, showNotification, showOptionDialog, showOptionDialog, showWebPageprotected static final java.lang.String GLOBAL_FILTER_PERMISSION
protected FilterEntity filterEntity
protected Filter filter
@Inject protected ConditionsDs conditionsDs
@Inject protected GridLayout filterPropertiesGrid
@Inject protected TextField<java.lang.String> filterName
@Inject protected Label<java.lang.String> filterNameLabel
@Inject protected CheckBox availableForAllCb
@Inject protected Label<java.lang.String> availableForAllLabel
@Inject protected CheckBox defaultCb
@Inject protected Label<java.lang.String> defaultLabel
@Inject protected CheckBox globalDefaultCb
@Inject protected Label<java.lang.String> globalDefaultLabel
@Inject protected CheckBox applyDefaultCb
@Inject protected Label<java.lang.String> applyDefaultLabel
@Inject protected DynamicAttributesConditionFrame dynamicAttributesConditionFrame
@Inject protected CustomConditionFrame customConditionFrame
@Inject protected PropertyConditionFrame propertyConditionFrame
@Inject protected GroupConditionFrame groupConditionFrame
@Inject protected FtsConditionFrame ftsConditionFrame
@Inject protected Tree<AbstractCondition> conditionsTree
@Inject protected ThemeConstants theme
@Inject protected UserSessionSource userSessionSource
@Inject protected FilterEditor.Companion companion
@Inject 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<Entity> modifiedGlobalDefaultFilters
public void init(java.util.Map<java.lang.String,java.lang.Object> params)
AbstractWindowinit in class AbstractWindowparams - 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()