## com.google.gwt.user.client.ui
Class FlowPanel

    java.lang.Object
      com.google.gwt.user.client.ui.UIObject
          com.google.gwt.user.client.ui.Widget
              com.google.gwt.user.client.ui.Panel
                  com.google.gwt.user.client.ui.ComplexPanel
                      com.google.gwt.user.client.ui.FlowPanel

All Implemented Interfaces:
  EventListener, HasWidgets, IndexedPanel

public class FlowPanel
extends ComplexPanel

A panel that formats its child widgets using the default HTML layout behavior.

Constructor Summary
`FlowPanel()` Creates an empty flow panel.

Method Summary
`void` `add(Widget w)` Adds a new child widget to the panel.
`void` `insert(Widget w, int beforeIndex)` Inserts a widget before the specified index.

Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
`add, getChildren, getWidget, getWidgetCount, getWidgetIndex, insert, iterator, remove, remove`

Methods inherited from class com.google.gwt.user.client.ui.Panel
`adopt, clear, disown, onAttach, onDetach`

Methods inherited from class com.google.gwt.user.client.ui.Widget
`getParent, isAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setElement`

Methods inherited from class com.google.gwt.user.client.ui.UIObject
`addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getTitle, isVisible, isVisible, removeStyleName, resetStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### FlowPanel

    public FlowPanel()

  Creates an empty flow panel.

Method Detail

### add

    public void add(Widget w)

  Adds a new child widget to the panel.

  Specified by:
    `add` in interface `HasWidgets`
  Overrides:
    `add` in class `Panel`
  Parameters:
    `w` - the widget to be added

### insert

    public void insert(Widget w,
                       int beforeIndex)

  Inserts a widget before the specified index.

  Parameters:
    `w` - the widget to be inserted
    `beforeIndex` - the index before which it will be inserted
  Throws:
    `java.lang.IndexOutOfBoundsException` - if `beforeIndex` is out of range