A layout container for horizontal rows of widgets. Provides support for automatic overflow (i.e. when there are too many widgets to display in the available width -- see {@link #setEnableOverflow(boolean)}).
Code Snippet:
HBoxLayoutContainer c = new HBoxLayoutContainer(); c.setHBoxLayoutAlign(HBoxLayoutAlign.TOP); BoxLayoutData layoutData = new BoxLayoutData(new Margins(5, 0, 0, 5)); c.add(new TextButton("Button 1"), layoutData); c.add(new TextButton("Button 2"), layoutData); c.add(new TextButton("Button 3"), layoutData); Viewport v = new Viewport(); v.add(c); RootPanel.get().add(v);
@see ToolBar