This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Shell 3.3.3!spring-doc.cn

BoxView

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.spring-doc.cn

BoxView view = new BoxView();
view.setDrawFunction((screen, rect) -> {
	screen.writerBuilder().build()
		.text("hi", 0, 0);
	return rect;
});

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.spring-doc.cn

Default Bindings

Does not have any default bindings.spring-doc.cn

Events

Does not have any events.spring-doc.cn