GridView

GridView is a special type of view and its purpose is to layout other views using a grid layout algorithms. Inherits BoxView.spring-doc.cn

GridView grid = new GridView();
grid.setShowBorders(true);
grid.setRowSize(0, 0);
grid.setColumnSize(0, 0);

grid.addItem(new BoxView(), 0, 0, 1, 1, 0, 0);
grid.addItem(new BoxView(), 0, 1, 1, 1, 0, 0);
grid.addItem(new BoxView(), 1, 0, 1, 1, 0, 0);
grid.addItem(new BoxView(), 1, 1, 1, 1, 0, 0);

Will result layout of:spring-doc.cn

┌───┬───┐
│   │   │
│   │   │
├───┼───┤
│   │   │
│   │   │
└───┴───┘

Default Bindings

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

Events

Does not have any events.spring-doc.cn