Class FlowLayout

java.lang.Object
vaadinx.awt.FlowLayout
All Implemented Interfaces:
Serializable, CssEmittingLayoutManager, LayoutManager

public class FlowLayout extends Object implements CssEmittingLayoutManager, Serializable
Emulator for FlowLayout. Under D_layout_css_on_content, CssEmittingLayoutManager.layoutContainer(Container) writes display: flex; flex-wrap: wrap; justify-content: …; gap: … to the container's peer content element via EHelper.applyContainerCss(Element, String, Map).

Hand-written rather than generator-emitted: the generator's root-class detection assumes Component-hierarchy ancestry and would emit a peer field, which a LayoutManager doesn't have. Plain LayoutManager (not LayoutManager2) — JDK FlowLayout has no per-child constraint storage; position is purely insertion-order driven.

See Also: