protected Element<?> newSection (String text, Layout.Constraint constraint, int bgColor,
int flags) {
Element<?> e;
if (useGroups) {
Background colorBg = Background.solid(bgColor);
SizableGroup g = new SizableGroup(new FlowLayout());
g.addStyles(Style.BACKGROUND.is(colorBg));
if ((flags & 1) != 0) g.add(getSizer(g, "W+", 10, 0), getSizer(g, "W-", -10, 0));
if ((flags & 2) != 0) g.add(getSizer(g, "H+", 0, 10), getSizer(g, "H-", 0, -10));
e = g.setConstraint(constraint);