This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Shell 3.4.0! |
ButtonView
ButtonView is a base implementation providing functionality to draw a button. Inherits BoxView.
┌──────┐
│ text │
└──────┘
You can set a text for a button and action to do when button is selected.
ButtonView view = new ButtonView();
view.setText("text");
view.setAction(() -> {
// do something when selected
});
Default Bindings
Default key bindigs are:
Command | Description |
---|---|
Enter |
Selects a button |
Default mouse bindigs are:
Command | Description |
---|---|
Released | Button1 |
Selects a button |