Package swingtree.api

Class Layout.ForGridLayout

java.lang.Object
swingtree.api.Layout.ForGridLayout
All Implemented Interfaces:
Layout
Enclosing interface:
Layout

@Immutable public static final class Layout.ForGridLayout extends Object implements Layout
A Layout which installs a UniformGridLayout onto a component, created through one of the Layout.grid(int, int) factory methods. It consists of the mode of the grid, which of its empty rows and columns are left out, how it grows when it holds more children than cells, the numbers of rows and columns, and the horizontal and vertical gaps.

When the component already has a UniformGridLayout, for example one installed through UIForAnySwing.withGridLayout(int, int) or by an earlier Layout.ForGridLayout, that layout manager is updated in place instead of being replaced.