java.lang.Object
org.springframework.shell.component.view.control.ViewCommand

public final class ViewCommand extends Object
Commands which can be performed by the application or bound to keys in a View. This class is a placeholder for constants of types usually needed in a views. We've chosen this not to be enumerable so that there would not be restrictions in an api's to use these types.
  • Field Details

    • LINE_UP

      public static String LINE_UP
      Move line up. For example where selection needs to be moved up.
    • LINE_DOWN

      public static String LINE_DOWN
      Move line down. For example where selection needs to be moved down.
    • NEXT_VIEW

      public static String NEXT_VIEW
      Move focus to the next view. For example using tab to navigate into next input field.
    • ACCEPT

      public static String ACCEPT
      Accepts a current state.
    • DELETE_CHAR_LEFT

      public static String DELETE_CHAR_LEFT
      Deletes the character on the left.
    • DELETE_CHAR_RIGHT

      public static String DELETE_CHAR_RIGHT
      Deletes the character on the right.
    • LEFT

      public static String LEFT
      Moves the selection left by one.
  • Constructor Details

    • ViewCommand

      public ViewCommand()