Package io.jmix.ui.action.screen
Class LookupSelectAction<T>
java.lang.Object
io.jmix.ui.action.AbstractAction
io.jmix.ui.action.BaseAction
io.jmix.ui.action.AbstractScreenAction<A,S>
io.jmix.ui.action.screen.OperationResultScreenAction<LookupSelectAction<T>,StandardLookup<T>>
io.jmix.ui.action.screen.LookupSelectAction<T>
- All Implemented Interfaces:
Action,Action.ExecutableAction,Action.HasPrimaryState,Action.OperationResultAction,Action.ScreenAction<StandardLookup<T>>,Action.SecuredAction
@StudioAction(target="io.jmix.ui.screen.Screen",
description="Selects item in lookup screen")
@ActionType("lookup_select")
public class LookupSelectAction<T>
extends OperationResultScreenAction<LookupSelectAction<T>,StandardLookup<T>>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.action.BaseAction
BaseAction.EnabledRuleNested classes/interfaces inherited from interface io.jmix.ui.action.Action
Action.ActionPerformedEvent, Action.AdjustWhenScreenReadOnly, Action.ExecutableAction, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.MainTabSheetAction, Action.OperationResultAction, Action.ScreenAction<S extends Screen>, Action.ScreenOpeningAction, Action.SecuredAction, Action.Status -
Field Summary
FieldsFields inherited from class io.jmix.ui.action.screen.OperationResultScreenAction
failHandler, nextStepSupplier, operationResult, successHandlerFields inherited from class io.jmix.ui.action.AbstractScreenAction
targetFields inherited from class io.jmix.ui.action.AbstractAction
caption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visibleFields inherited from interface io.jmix.ui.action.Action
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidexecute()Executes theActionprotected booleanprotected voidprotected booleanCallback method which is invoked by the action to determine its enabled state.protected voidprotected voidonValueChange(HasValue.ValueChangeEvent<T> event) voidvoidsetMessages(Messages messages) voidsetTarget(StandardLookup<T> target) voidsetUiScreenProperties(UiScreenProperties uiScreenProperties) Methods inherited from class io.jmix.ui.action.screen.OperationResultScreenAction
getOperationResult, setFailHandler, setNextStepSupplier, setSuccessHandler, withFailHandler, withNextStepSupplier, withSuccessHandlerMethods inherited from class io.jmix.ui.action.AbstractScreenAction
actionPerform, checkTarget, getTarget, withCaption, withDescription, withEnabled, withEnabledByUiPermissions, withHandler, withIcon, withPrimary, withShortcut, withTarget, withVisible, withVisibleByUiPermissionsMethods inherited from class io.jmix.ui.action.BaseAction
addActionPerformedListener, addEnabledRule, isEnabledByRule, isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setEnabledInternal, setVisible, setVisibleByUiPermissions, setVisibleInternalMethods inherited from class io.jmix.ui.action.AbstractAction
addOwner, addPropertyChangeListener, firePropertyChange, getCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setPrimary, setShortcut, setShortcutCombinationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.ui.action.Action
actionPerform, addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setShortcut, setShortcutCombination, setVisible
-
Field Details
-
ID
- See Also:
-
selectionListenerSubscription
-
-
Constructor Details
-
LookupSelectAction
public LookupSelectAction() -
LookupSelectAction
-
-
Method Details
-
initAction
protected void initAction()- Overrides:
initActionin classAbstractScreenAction<LookupSelectAction<T>,StandardLookup<T>>
-
setIcons
-
setMessages
-
setUiScreenProperties
-
setTarget
- Specified by:
setTargetin interfaceAction.ScreenAction<T>- Overrides:
setTargetin classAbstractScreenAction<LookupSelectAction<T>,StandardLookup<T>>
-
isApplicable
protected boolean isApplicable()Description copied from class:BaseActionCallback method which is invoked by the action to determine its enabled state.- Overrides:
isApplicablein classAbstractScreenAction<LookupSelectAction<T>,StandardLookup<T>> - Returns:
- true if the action is enabled for the current context, e.g. there is a selected row in a table
-
hasSelectedItems
protected boolean hasSelectedItems() -
execute
public void execute()Description copied from interface:Action.ExecutableActionExecutes theAction- Specified by:
executein interfaceAction.ExecutableAction- Overrides:
executein classOperationResultScreenAction<LookupSelectAction<T>,StandardLookup<T>>
-
attachSelectionListener
protected void attachSelectionListener() -
onSelectionChange
-
onValueChange
-