Package io.jmix.flowui.action.list
Class ListDataComponentAction<A extends ListDataComponentAction<A,E>,E>
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.list.ListDataComponentAction<A,E>
- All Implemented Interfaces:
ExecutableAction,TargetAction<ListDataComponent<E>>,Action,HasShortcutCombination
- Direct Known Subclasses:
AddAction,CreateAction,ExportAction,ListDynamicLocalizedMessageEditAction,RefreshAction,RunListEntityReportAction,RunReportAction,SecuredListDataComponentAction,ShowExecutionReportHistoryAction,ShowPivotTableAction
public abstract class ListDataComponentAction<A extends ListDataComponentAction<A,E>,E>
extends SecuredBaseAction<A>
implements TargetAction<ListDataComponent<E>>, 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 ListDataComponent<E> Fields 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 voidprotected voidcheckTargetItems(Class<?> itemsType) @Nullable ListDataComponent<E> protected voidprotected voidonSelectionChange(com.vaadin.flow.data.selection.SelectionEvent<?, E> event) voidsetTarget(@Nullable ListDataComponent<E> target) withTarget(@Nullable ListDataComponent<E> target) Methods inherited from class io.jmix.flowui.action.SecuredBaseAction
addEnabledRule, isEnabledByRule, isPermitted, refreshState, removeEnabledRuleMethods inherited from class io.jmix.flowui.action.ObservableBaseAction
getUiObservationSupportMethods inherited from class io.jmix.flowui.kit.action.BaseAction
addActionPerformedListener, isApplicable, self, setEnabled, setEnabledInternal, setVisible, setVisibleInternal, 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
-
selectionListenerRegistration
protected com.vaadin.flow.shared.Registration selectionListenerRegistration
-
-
Constructor Details
-
ListDataComponentAction
-
-
Method Details
-
initAction
protected void initAction() -
getTarget
- Specified by:
getTargetin interfaceTargetAction<A extends ListDataComponentAction<A,E>>
-
setTarget
- Specified by:
setTargetin interfaceTargetAction<A extends ListDataComponentAction<A,E>>
-
withTarget
-
attachSelectionListener
protected void attachSelectionListener() -
onSelectionChange
-
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 ListDataComponentAction<A,E>> - Parameters:
component-Componentthat triggered this action
-
checkTarget
protected void checkTarget() -
checkTargetItems
-