Files
spring-shell/spring-shell-docs/modules/ROOT/pages/tui/views/box.adoc
Janne Valkealahti d77bcac59c Update docs
2023-10-20 08:07:17 +01:00

29 lines
863 B
Plaintext

[[tui-views-box]]
= BoxView
:page-section-summary-toc: 1
ifndef::snippets[:snippets: ../../../../../src/test/java/org/springframework/shell/docs]
_BoxView_ is a base implementation providing functionality to draw into a
bounded _Rectancle_. Only direct use of it is its `drawFunction` which
allows to do simple things without implementing a full custom `View`.
[source, java, indent=0]
----
include::{snippets}/BoxViewSnippets.java[tag=sample]
----
== Customisation
_BoxView_ as mostly being a base class contains some useful features
like if it should draw a border and what what are its paddings.
Border can have a title and its color and focused color can be
defined. It's also possible to explicitely set background color
which will override one from styling.
== Default Bindings
Does not have any default bindings.
== Events
Does not have any events.