Interface ActionEvent

All Superinterfaces:
Action, Consumer<InputProcessor>
All Known Subinterfaces:
SearchAction
All Known Implementing Classes:
Complete, ForwardSearchHistory, ReverseSearchHistory

public interface ActionEvent extends Action
An action that can receive input events and maintain focus state.
Author:
Ståle W. Pedersen
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    input(Action action, KeyAction key)
    Processes an input event with the given action and key.
    boolean
    Returns whether this action event should retain focus after processing.

    Methods inherited from interface Action

    accept, name

    Methods inherited from interface Consumer

    andThen
  • Method Details

    • input

      void input(Action action, KeyAction key)
      Processes an input event with the given action and key.
      Parameters:
      action - the action that triggered this input
      key - the key action associated with the input
    • keepFocus

      boolean keepFocus()
      Returns whether this action event should retain focus after processing.
      Returns:
      true if this event should keep focus