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

java.lang.Object
  extended bycom.google.gwt.user.client.ui.UIObject
      extended bycom.google.gwt.user.client.ui.Widget
          extended bycom.google.gwt.user.client.ui.Panel
              extended bycom.google.gwt.user.client.ui.ComplexPanel
                  extended bycom.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