GridView

GridView is a special type of view and its purpose is to lay out other views using a grid layout algorithm. GridView inherits from BoxView.

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);

This produces the following layout:

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

Default Bindings

Does not have any default bindings.

Events

Does not have any events.