Add multiinput scenario
- InputView using viewcommands and has event for text change. - Experimental way to handle tab navigation in a layout views. - New viewcommands for tab navigation and moving cursor. - Mouse click takes focus in AbstractView if no view command binding. - MultiInputViewScenario now shows tab navigation. - Fixes #917
This commit is contained in:
@@ -61,6 +61,7 @@
|
||||
*** xref:tui/views/button.adoc[]
|
||||
*** xref:tui/views/dialog.adoc[]
|
||||
*** xref:tui/views/grid.adoc[]
|
||||
*** xref:tui/views/input.adoc[]
|
||||
*** xref:tui/views/list.adoc[]
|
||||
*** xref:tui/views/menu.adoc[]
|
||||
*** xref:tui/views/menubar.adoc[]
|
||||
|
||||
66
spring-shell-docs/modules/ROOT/pages/tui/views/input.adoc
Normal file
66
spring-shell-docs/modules/ROOT/pages/tui/views/input.adoc
Normal file
@@ -0,0 +1,66 @@
|
||||
= InputView
|
||||
:page-section-summary-toc: 1
|
||||
|
||||
ifndef::snippets[:snippets: ../../../../../src/test/java/org/springframework/shell/docs]
|
||||
|
||||
_InputView_ is a base implementation providing functionality to draw and modify
|
||||
text in a bounded _Rectancle_.
|
||||
|
||||
[source, java, indent=0]
|
||||
----
|
||||
include::{snippets}/InputViewSnippets.java[tag=sample]
|
||||
----
|
||||
|
||||
== Default Bindings
|
||||
Default _view commands_ are:
|
||||
|
||||
.ViewCommands
|
||||
|===
|
||||
|Command |Description
|
||||
|
||||
|LEFT
|
||||
|Cursor moves left
|
||||
|
||||
|RIGHT
|
||||
|Cursor moves right
|
||||
|
||||
|DELETE_CHAR_LEFT
|
||||
|Delete character left
|
||||
|
||||
|DELETE_CHAR_RIGHT
|
||||
|Delete character right
|
||||
|
||||
|===
|
||||
|
||||
Default _key bindigs_ are:
|
||||
|
||||
.Key
|
||||
|===
|
||||
|Command |Description
|
||||
|
||||
|CursorLeft
|
||||
|Bound ViewCommand LEFT
|
||||
|
||||
|CursorRight
|
||||
|Bound ViewCommand RIGHT
|
||||
|
||||
|Backspace
|
||||
|Bound ViewCommand DELETE_CHAR_LEFT
|
||||
|
||||
|Delete
|
||||
|Bound ViewCommand DELETE_CHAR_RIGHT
|
||||
|
||||
|===
|
||||
|
||||
== Events
|
||||
|
||||
Events are sent depending on a used list type.
|
||||
|
||||
.InputView Events
|
||||
|===
|
||||
|Event |Description
|
||||
|
||||
|InputViewTextChangeEvent
|
||||
|Input text has changed
|
||||
|
||||
|===
|
||||
Reference in New Issue
Block a user