Package io.jmix.flowui.action.view
Class LookupSelectAction<E>
java.lang.Object
io.jmix.flowui.kit.action.AbstractAction
io.jmix.flowui.kit.action.BaseAction
io.jmix.flowui.action.SecuredBaseAction
io.jmix.flowui.action.view.ViewAction<A,V>
io.jmix.flowui.action.view.OperationResultViewAction<LookupSelectAction<E>,StandardListView<E>>
io.jmix.flowui.action.view.LookupSelectAction<E>
- All Implemented Interfaces:
ExecutableAction
,OperationResultAction
,SecuredAction
,TargetAction<StandardListView<E>>
,Action
,HasShortcutCombination
@ActionType("lookup_select")
public class LookupSelectAction<E>
extends OperationResultViewAction<LookupSelectAction<E>,StandardListView<E>>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.action.SecuredBaseAction
SecuredBaseAction.EnabledRule
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected com.vaadin.flow.shared.Registration
Fields inherited from class io.jmix.flowui.action.view.OperationResultViewAction
failHandler, nextStepSupplier, operationResult, successHandler
Fields inherited from class io.jmix.flowui.action.view.ViewAction
target
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 TypeMethodDescriptionprotected void
void
execute()
Executes theAction
protected boolean
protected void
protected boolean
protected void
onSelectionChange
(com.vaadin.flow.data.selection.SelectionEvent<?, E> event) protected void
onValueChange
(com.vaadin.flow.component.HasValue.ValueChangeEvent<E> event) protected void
setFlowUiViewProperties
(FlowuiViewProperties flowUiViewProperties) protected void
setMessages
(Messages messages) void
setTarget
(StandardListView<E> target) Methods inherited from class io.jmix.flowui.action.view.OperationResultViewAction
getOperationResult, setFailHandler, setNextStepSupplier, setSuccessHandler, withFailHandler, withNextStepSupplier, withSuccessHandler
Methods inherited from class io.jmix.flowui.action.view.ViewAction
actionPerform, checkTarget, getTarget, withEnabled, withEnabledByUiPermissions, withHandler, withIcon, withIcon, withShortcutCombination, withTarget, withText, withTitle, withVariant, withVisible, withVisibleByUiPermissions
Methods inherited from class io.jmix.flowui.action.SecuredBaseAction
addEnabledRule, isEnabledByRule, isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, 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
actionPerform, addPropertyChangeListener, getDescription, getIcon, getId, getText, getVariant, isEnabled, isVisible, refreshState, setDescription, setEnabled, setIcon, setText, setVariant, setVisible
Methods inherited from interface io.jmix.flowui.kit.component.HasShortcutCombination
getShortcutCombination, setShortcutCombination
-
Field Details
-
ID
- See Also:
-
selectionListenerRegistration
protected com.vaadin.flow.shared.Registration selectionListenerRegistration
-
-
Constructor Details
-
LookupSelectAction
public LookupSelectAction() -
LookupSelectAction
-
-
Method Details
-
initAction
protected void initAction()- Overrides:
initAction
in classViewAction<LookupSelectAction<E>,
StandardListView<E>>
-
setMessages
-
setFlowUiViewProperties
-
setTarget
- Specified by:
setTarget
in interfaceTargetAction<E>
- Overrides:
setTarget
in classViewAction<LookupSelectAction<E>,
StandardListView<E>>
-
isApplicable
protected boolean isApplicable()- Overrides:
isApplicable
in classViewAction<LookupSelectAction<E>,
StandardListView<E>>
-
hasSelectedItems
protected boolean hasSelectedItems() -
execute
public void execute()Description copied from interface:ExecutableAction
Executes theAction
- Specified by:
execute
in interfaceExecutableAction
- Overrides:
execute
in classOperationResultViewAction<LookupSelectAction<E>,
StandardListView<E>>
-
attachSelectionListener
protected void attachSelectionListener() -
onSelectionChange
-
onValueChange
-