Class GenericFilterAction<A extends GenericFilterAction<A>>
java.lang.Object
io.jmix.flowui.kit.action.AbstractAction
io.jmix.flowui.kit.action.BaseAction
io.jmix.flowui.action.SecuredBaseAction
io.jmix.flowui.action.genericfilter.GenericFilterAction<A>
- All Implemented Interfaces:
ExecutableAction
,SecuredAction
,TargetAction<GenericFilter>
,Action
,HasShortcutCombination
- Direct Known Subclasses:
AbstractGenericFilterSaveAction
,GenericFilterAddConditionAction
,GenericFilterClearValuesAction
,GenericFilterCopyAction
,GenericFilterEditAction
,GenericFilterRemoveAction
,GenericFilterResetAction
public abstract class GenericFilterAction<A extends GenericFilterAction<A>>
extends SecuredBaseAction
implements TargetAction<GenericFilter>, ExecutableAction
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.action.SecuredBaseAction
SecuredBaseAction.EnabledRule
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.vaadin.flow.shared.Registration
protected com.vaadin.flow.shared.Registration
protected GenericFilter
protected boolean
Fields inherited from class io.jmix.flowui.action.SecuredBaseAction
enabledByUiPermissions, enabledRules, visibleByUiPermissions
Fields inherited from class io.jmix.flowui.kit.action.BaseAction
enabledExplicitly, visibleExplicitly
Fields inherited from class io.jmix.flowui.kit.action.AbstractAction
description, enabled, eventBus, icon, id, shortcutCombination, text, variant, visible
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerform
(com.vaadin.flow.component.Component component) protected void
protected void
bindListeners
(GenericFilter target) protected void
protected View<?>
protected void
protected boolean
protected boolean
boolean
protected void
protected void
void
setTarget
(GenericFilter target) protected void
setTargetInternal
(GenericFilter target) protected void
protected void
withEnabled
(boolean enabled) withEnabledByUiPermissions
(boolean enabledByUiPermissions) withHandler
(Consumer<ActionPerformedEvent> handler) withIcon
(com.vaadin.flow.component.icon.Icon icon) withIcon
(com.vaadin.flow.component.icon.VaadinIcon icon) withShortcutCombination
(KeyCombination shortcutCombination) withTarget
(GenericFilter target) withVariant
(ActionVariant actionVariant) withVisible
(boolean visible) withVisibleByUiPermissions
(boolean visibleByUiPermissions) Methods inherited from class io.jmix.flowui.action.SecuredBaseAction
addEnabledRule, isEnabledByRule, isEnabledByUiPermissions, refreshState, removeEnabledRule, setEnabledByUiPermissions, setVisibleByUiPermissions
Methods inherited from class io.jmix.flowui.kit.action.BaseAction
addActionPerformedListener, setEnabled, setEnabledInternal, setVisible, setVisibleInternal
Methods inherited from class io.jmix.flowui.kit.action.AbstractAction
addPropertyChangeListener, firePropertyChange, getDescription, getEventBus, getIcon, getId, getShortcutCombination, getText, getVariant, hasListener, isEnabled, isVisible, setDescription, setIcon, setShortcutCombination, setText, setVariant
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.flowui.kit.action.Action
addPropertyChangeListener, getDescription, getIcon, getId, getText, getVariant, isEnabled, isVisible, refreshState, setDescription, setEnabled, setIcon, setText, setVariant, setVisible
Methods inherited from interface io.jmix.flowui.action.ExecutableAction
execute
Methods 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:
getTarget
in interfaceTargetAction<A extends GenericFilterAction<A>>
-
setTarget
- Specified by:
setTarget
in interfaceTargetAction<A extends GenericFilterAction<A>>
-
setTargetInternal
-
actionPerform
public void actionPerform(com.vaadin.flow.component.Component component) - Specified by:
actionPerform
in interfaceAction
- Overrides:
actionPerform
in classBaseAction
-
isApplicable
protected boolean isApplicable()- Overrides:
isApplicable
in classBaseAction
-
isPermitted
protected boolean isPermitted()- Overrides:
isPermitted
in classSecuredBaseAction
-
isVisibleByUiPermissions
public boolean isVisibleByUiPermissions()- Specified by:
isVisibleByUiPermissions
in interfaceSecuredAction
- Overrides:
isVisibleByUiPermissions
in classSecuredBaseAction
-
bindListeners
-
bindFilterComponentsChangeListener
-
unbindListeners
protected void unbindListeners() -
unbindFilterComponentsChange
protected void unbindFilterComponentsChange() -
onConfigurationChanged
-
onFilterComponentsChanged
protected void onFilterComponentsChanged(LogicalFilterComponent.FilterComponentsChangeEvent<?> event) -
withTarget
-
withText
- Overrides:
withText
in classSecuredBaseAction
-
withEnabled
- Overrides:
withEnabled
in classSecuredBaseAction
-
withVisible
- Overrides:
withVisible
in classSecuredBaseAction
-
withIcon
- Overrides:
withIcon
in classSecuredBaseAction
-
withIcon
- Overrides:
withIcon
in classSecuredBaseAction
-
withTitle
- Overrides:
withTitle
in classSecuredBaseAction
-
withVariant
- Overrides:
withVariant
in classSecuredBaseAction
-
withShortcutCombination
- Overrides:
withShortcutCombination
in classSecuredBaseAction
-
withHandler
- Overrides:
withHandler
in classSecuredBaseAction
-
withEnabledByUiPermissions
- Overrides:
withEnabledByUiPermissions
in classSecuredBaseAction
-
withVisibleByUiPermissions
- Overrides:
withVisibleByUiPermissions
in classSecuredBaseAction
-
checkTarget
protected void checkTarget() -
getParentView
-