Class InputDialogAction

All Implemented Interfaces:
ExecutableAction, SecuredAction, TargetAction<InputDialog>, Action, HasShortcutCombination

public class InputDialogAction extends ViewAction<InputDialogAction,InputDialog>
Action can be used in InputDialog.
See Also:
  • Field Details

    • validationRequired

      protected boolean validationRequired
    • inputDialog

      protected InputDialog inputDialog
    • component

      protected com.vaadin.flow.component.Component component
  • Constructor Details

    • InputDialogAction

      public InputDialogAction(String id)
  • Method Details

    • actionPerform

      public void actionPerform(com.vaadin.flow.component.Component component)
      Specified by:
      actionPerform in interface Action
      Overrides:
      actionPerform in class ViewAction<InputDialogAction,InputDialog>
    • action

      public static InputDialogAction action(String id)
      Creates new instance of InputDialogAction.
      Parameters:
      id - action id
      Returns:
      input dialog action
    • withValidationRequired

      public InputDialogAction withValidationRequired(boolean validationRequired)
      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: ExecutableAction
      Executes the Action