public class

FlowPanel

extends ComplexPanel
implements InsertPanel.ForIsWidget
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

Class Overview

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

Summary

[Expand]
Inherited Constants
From class com.google.gwt.user.client.ui.UIObject
Public Constructors
FlowPanel()
Creates an empty flow panel.
Public Methods
void add(Widget w)
Adds a new child widget to the panel.
void clear()
Removes all child widgets.
void insert(IsWidget w, int beforeIndex)
void insert(Widget w, int beforeIndex)
Inserts a widget before the specified index.
[Expand]
Inherited Methods
From class com.google.gwt.user.client.ui.ComplexPanel
From class com.google.gwt.user.client.ui.Panel
From class com.google.gwt.user.client.ui.Widget
From class com.google.gwt.user.client.ui.UIObject
From class java.lang.Object
From interface com.google.gwt.event.logical.shared.HasAttachHandlers
From interface com.google.gwt.event.shared.HasHandlers
From interface com.google.gwt.user.client.EventListener
From interface com.google.gwt.user.client.ui.HasWidgets
From interface com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
From interface com.google.gwt.user.client.ui.IndexedPanel
From interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
From interface com.google.gwt.user.client.ui.InsertPanel
From interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
From interface com.google.gwt.user.client.ui.IsWidget
From interface java.lang.Iterable

Public Constructors

public FlowPanel ()

Creates an empty flow panel.

Public Methods

public void add (Widget w)

Adds a new child widget to the panel.

Parameters
w the widget to be added

public void clear ()

Removes all child widgets.

public void insert (IsWidget w, int beforeIndex)

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
IndexOutOfBoundsException if beforeIndex is out of range