Class ViewCommand
java.lang.Object
org.springframework.shell.component.view.control.ViewCommand
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 Summary
Modifier and TypeFieldDescriptionstatic String
Accepts a current state.static String
Deletes the character on the left.static String
Deletes the character on the right.static String
Moves the selection left by one.static String
Move line down.static String
Move line up.static String
Move focus to the next view.static String
Moves the selection righ by one. -
Constructor Summary
-
Method Summary
-
Field Details
-
LINE_UP
Move line up. For example where selection needs to be moved up. -
LINE_DOWN
Move line down. For example where selection needs to be moved down. -
NEXT_VIEW
Move focus to the next view. For example using tab to navigate into next input field. -
ACCEPT
Accepts a current state. -
DELETE_CHAR_LEFT
Deletes the character on the left. -
DELETE_CHAR_RIGHT
Deletes the character on the right. -
LEFT
Moves the selection left by one. -
RIGHT
Moves the selection righ by one.
-
-
Constructor Details
-
ViewCommand
public ViewCommand()
-