Class Complete

java.lang.Object
org.aesh.readline.action.mappings.Complete
All Implemented Interfaces:
Consumer<InputProcessor>, Action, ActionEvent

public class Complete extends Object implements ActionEvent
Action that triggers tab completion for the current input.
Author:
Ståle W. Pedersen
  • Constructor Details

    • Complete

      public Complete()
      Creates a new complete action.
  • Method Details

    • name

      public String name()
      Description copied from interface: Action
      Returns the name of this action.
      Specified by:
      name in interface Action
      Returns:
      the action name
    • accept

      public void accept(InputProcessor inputProcessor)
      Description copied from interface: Action
      Executes this action on the given input processor.
      Specified by:
      accept in interface Action
      Specified by:
      accept in interface Consumer<InputProcessor>
      Parameters:
      inputProcessor - the input processor to operate on
    • input

      public void input(Action action, KeyAction key)
      Description copied from interface: ActionEvent
      Processes an input event with the given action and key.
      Specified by:
      input in interface ActionEvent
      Parameters:
      action - the action that triggered this input
      key - the key action associated with the input
    • keepFocus

      public boolean keepFocus()
      Description copied from interface: ActionEvent
      Returns whether this action event should retain focus after processing.
      Specified by:
      keepFocus in interface ActionEvent
      Returns:
      true if this event should keep focus