Class InputDialogAction
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<InputDialogAction,InputDialog>
io.jmix.flowui.action.inputdialog.InputDialogAction
- All Implemented Interfaces:
ExecutableAction,SecuredAction,TargetAction<InputDialog>,Action,HasShortcutCombination
Action can be used in
InputDialog.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.action.SecuredBaseAction
SecuredBaseAction.EnabledRule -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.vaadin.flow.component.Componentprotected InputDialogprotected booleanFields inherited from class io.jmix.flowui.action.view.ViewAction
targetFields inherited from class io.jmix.flowui.action.SecuredBaseAction
enabledByUiPermissions, enabledRules, 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_COMBINATION, PROP_TEXT, PROP_VARIANT, PROP_VISIBLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InputDialogActionCreates new instance of InputDialogAction.voidactionPerform(com.vaadin.flow.component.Component component) voidexecute()Executes theActionbooleanwithValidationRequired(boolean validationRequired) Set to true if handler should be invoked after successful validation.Methods inherited from class io.jmix.flowui.action.view.ViewAction
checkTarget, getTarget, initAction, isApplicable, setTarget, withEnabled, withEnabledByUiPermissions, withHandler, withIcon, withIcon, withShortcutCombination, withTarget, withText, withTitle, withVariant, withVisible, withVisibleByUiPermissionsMethods inherited from class io.jmix.flowui.action.SecuredBaseAction
addEnabledRule, isEnabledByRule, isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, refreshState, removeEnabledRule, 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
addPropertyChangeListener, getDescription, getIcon, getId, getText, getVariant, isEnabled, isVisible, refreshState, setDescription, setEnabled, setIcon, setText, setVariant, setVisibleMethods inherited from interface io.jmix.flowui.kit.component.HasShortcutCombination
getShortcutCombination, setShortcutCombination
-
Field Details
-
validationRequired
protected boolean validationRequired -
inputDialog
-
component
protected com.vaadin.flow.component.Component component
-
-
Constructor Details
-
InputDialogAction
-
-
Method Details
-
actionPerform
public void actionPerform(com.vaadin.flow.component.Component component) - Specified by:
actionPerformin interfaceAction- Overrides:
actionPerformin classViewAction<InputDialogAction,InputDialog>
-
action
Creates new instance of InputDialogAction.- Parameters:
id- action id- Returns:
- input dialog action
-
withValidationRequired
Set to true if handler should be invoked after successful validation. False - validation won't be preformed and handler will be invoked. Default value is true.- Parameters:
validationRequired- validation required option- Returns:
- current instance of action
-
isValidationRequired
public boolean isValidationRequired()- Returns:
- true if handler should be invoked after successful validation
-
execute
public void execute()Description copied from interface:ExecutableActionExecutes theAction
-