Class GenericFilterAction<A extends GenericFilterAction<A>>
java.lang.Object
io.jmix.flowui.kit.action.AbstractAction
io.jmix.flowui.kit.action.BaseAction<A>
io.jmix.flowui.action.ObservableBaseAction<A>
io.jmix.flowui.action.SecuredBaseAction<A>
io.jmix.flowui.action.genericfilter.GenericFilterAction<A>
- All Implemented Interfaces:
ExecutableAction,TargetAction<GenericFilter>,Action,HasShortcutCombination
- Direct Known Subclasses:
AbstractGenericFilterSaveAction,GenericFilterAddConditionAction,GenericFilterClearValuesAction,GenericFilterCopyAction,GenericFilterEditAction,GenericFilterMakeDefaultAction,GenericFilterRemoveAction,GenericFilterResetAction
public abstract class GenericFilterAction<A extends GenericFilterAction<A>>
extends SecuredBaseAction<A>
implements TargetAction<GenericFilter>, ExecutableAction
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.action.SecuredBaseAction
SecuredBaseAction.EnabledRule -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.vaadin.flow.shared.Registrationprotected com.vaadin.flow.shared.Registrationprotected GenericFilterprotected booleanFields inherited from class io.jmix.flowui.action.SecuredBaseAction
enabledRulesFields inherited from class io.jmix.flowui.action.ObservableBaseAction
uiObservationSupportFields inherited from class io.jmix.flowui.kit.action.BaseAction
enabledExplicitly, visibleExplicitlyFields inherited from class io.jmix.flowui.kit.action.AbstractAction
description, enabled, eventBus, icon, id, shortcutCombination, text, variant, visibleFields inherited from interface io.jmix.flowui.kit.action.Action
PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT_COMBINATION, PROP_TEXT, PROP_VARIANT, PROP_VISIBLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerform(com.vaadin.flow.component.Component component) Executes action logic.protected voidprotected voidbindListeners(GenericFilter target) protected voidprotected View<?> @Nullable GenericFilterprotected voidprotected booleanprotected booleanprotected booleanprotected voidprotected voidvoidsetTarget(@Nullable GenericFilter target) protected voidsetTargetInternal(@Nullable GenericFilter target) protected voidsetVisibleInternal(boolean visible) protected voidprotected voidwithTarget(@Nullable GenericFilter target) Methods inherited from class io.jmix.flowui.action.SecuredBaseAction
addEnabledRule, isEnabledByRule, refreshState, removeEnabledRuleMethods inherited from class io.jmix.flowui.action.ObservableBaseAction
getUiObservationSupportMethods inherited from class io.jmix.flowui.kit.action.BaseAction
addActionPerformedListener, self, setEnabled, setEnabledInternal, setVisible, withDescription, withEnabled, withHandler, withIcon, withShortcutCombination, withText, withVariant, withVisibleMethods inherited from class io.jmix.flowui.kit.action.AbstractAction
addPropertyChangeListener, firePropertyChange, getDescription, getEventBus, getIcon, getIconComponent, getId, getShortcutCombination, getText, getVariant, hasListener, isEnabled, isVisible, setDescription, setIcon, setIconComponent, setShortcutCombination, setText, setVariantMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.flowui.kit.action.Action
addPropertyChangeListener, getDescription, getIcon, getIconComponent, getId, getText, getVariant, isEnabled, isVisible, refreshState, setDescription, setEnabled, setIcon, setIconComponent, setText, setVariant, setVisibleMethods inherited from interface io.jmix.flowui.action.ExecutableAction
executeMethods inherited from interface io.jmix.flowui.kit.component.HasShortcutCombination
getShortcutCombination, setShortcutCombination
-
Field Details
-
target
-
visibleBySpecificUiPermission
protected boolean visibleBySpecificUiPermission -
configurationChangeRegistration
protected com.vaadin.flow.shared.Registration configurationChangeRegistration -
filterComponentsChangeRegistration
protected com.vaadin.flow.shared.Registration filterComponentsChangeRegistration
-
-
Constructor Details
-
GenericFilterAction
-
-
Method Details
-
initAction
protected void initAction() -
getTarget
- Specified by:
getTargetin interfaceTargetAction<A extends GenericFilterAction<A>>
-
setTarget
- Specified by:
setTargetin interfaceTargetAction<A extends GenericFilterAction<A>>
-
setTargetInternal
-
actionPerform
public void actionPerform(com.vaadin.flow.component.Component component) Description copied from interface:ActionExecutes action logic.- Specified by:
actionPerformin interfaceAction- Overrides:
actionPerformin classObservableBaseAction<A extends GenericFilterAction<A>>- Parameters:
component-Componentthat triggered this action
-
isApplicable
protected boolean isApplicable()- Overrides:
isApplicablein classBaseAction<A extends GenericFilterAction<A>>
-
isPermitted
protected boolean isPermitted()- Overrides:
isPermittedin classSecuredBaseAction<A extends GenericFilterAction<A>>
-
isVisibleBySpecificUiPermission
protected boolean isVisibleBySpecificUiPermission() -
setVisibleInternal
protected void setVisibleInternal(boolean visible) - Overrides:
setVisibleInternalin classBaseAction<A extends GenericFilterAction<A>>
-
bindListeners
-
bindFilterComponentsChangeListener
-
unbindListeners
protected void unbindListeners() -
unbindFilterComponentsChange
protected void unbindFilterComponentsChange() -
onConfigurationChanged
-
onFilterComponentsChanged
protected void onFilterComponentsChanged(LogicalFilterComponent.FilterComponentsChangeEvent<?> event) -
withTarget
-
checkTarget
protected void checkTarget() -
getParentView
-