Package io.jmix.flowui.action.screen
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.screen.ScreenAction<A,S>
io.jmix.flowui.action.screen.OperationResultScreenAction<LookupSelectAction<E>,StandardLookup<E>>
io.jmix.flowui.action.screen.LookupSelectAction<E>
- All Implemented Interfaces:
ExecutableAction,OperationResultAction,SecuredAction,TargetAction<StandardLookup<E>>,Action
@ActionType("lookup_select")
public class LookupSelectAction<E>
extends OperationResultScreenAction<LookupSelectAction<E>,StandardLookup<E>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected com.vaadin.flow.shared.RegistrationFields inherited from class io.jmix.flowui.action.screen.OperationResultScreenAction
failHandler, nextStepSupplier, operationResult, successHandlerFields inherited from class io.jmix.flowui.action.screen.ScreenAction
targetFields inherited from class io.jmix.flowui.action.SecuredBaseAction
enabledByUiPermissions, visibleByUiPermissionsFields 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, PROP_TEXT, PROP_VARIANT, PROP_VISIBLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidexecute()Executes theActionprotected booleanprotected voidprotected booleanprotected voidonSelectionChange(com.vaadin.flow.data.selection.SelectionEvent<?, E> event) protected voidonValueChange(com.vaadin.flow.component.HasValue.ValueChangeEvent<E> event) protected voidsetFlowUiScreenProperties(FlowUiScreenProperties flowUiScreenProperties) protected voidsetMessages(Messages messages) voidsetTarget(StandardLookup<E> target) Methods inherited from class io.jmix.flowui.action.screen.OperationResultScreenAction
getOperationResult, setFailHandler, setNextStepSupplier, setSuccessHandler, withFailHandler, withNextStepSupplier, withSuccessHandlerMethods inherited from class io.jmix.flowui.action.screen.ScreenAction
actionPerform, checkTarget, getTarget, withEnabled, withEnabledByUiPermissions, withHandler, withIcon, withIcon, withShortcutCombination, withTarget, withText, withTitle, withVariant, withVisible, withVisibleByUiPermissionsMethods inherited from class io.jmix.flowui.action.SecuredBaseAction
isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, refreshState, setEnabledByUiPermissions, setVisibleByUiPermissionsMethods inherited from class io.jmix.flowui.kit.action.BaseAction
addActionPerformedListener, setEnabled, setEnabledInternal, setVisible, setVisibleInternalMethods 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, 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
actionPerform, addPropertyChangeListener, getDescription, getIcon, getId, getShortcutCombination, getText, getVariant, isEnabled, isVisible, refreshState, setDescription, setEnabled, setIcon, setShortcutCombination, setText, setVariant, setVisible
-
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:
initActionin classScreenAction<LookupSelectAction<E>,StandardLookup<E>>
-
setMessages
-
setFlowUiScreenProperties
-
setTarget
- Specified by:
setTargetin interfaceTargetAction<E>- Overrides:
setTargetin classScreenAction<LookupSelectAction<E>,StandardLookup<E>>
-
isApplicable
protected boolean isApplicable()- Overrides:
isApplicablein classScreenAction<LookupSelectAction<E>,StandardLookup<E>>
-
hasSelectedItems
protected boolean hasSelectedItems() -
execute
public void execute()Description copied from interface:ExecutableActionExecutes theAction- Specified by:
executein interfaceExecutableAction- Overrides:
executein classOperationResultScreenAction<LookupSelectAction<E>,StandardLookup<E>>
-
attachSelectionListener
protected void attachSelectionListener() -
onSelectionChange
-
onValueChange
-