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

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
All Implemented Interfaces:
EventListener, HasWidgets
Direct Known Subclasses:
AbsolutePanel, CellPanel, DeckPanel, FlowPanel, HTMLPanel, StackPanel

public abstract class ComplexPanel
extends Panel

Abstract base class for panels that can contain multiple child widgets.


Field Summary
 
Fields inherited from class java.lang.Object
typeId, typeName
 
Constructor Summary
ComplexPanel()
           
 
Method Summary
 boolean add(Widget w)
          Adds a new child widget to the panel.
 void clear()
          Removes all widgets from this panel.
 Widget getWidget(int index)
           
 int getWidgetCount()
           
 int getWidgetIndex(Widget child)
           
 boolean insert(Widget w, int beforeIndex)
          Inserts a widget into the panel
 Iterator iterator()
          Gets an iterator for the contained widgets.
 boolean remove(Widget w)
          Removes a widget from the panel.
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
adopt, disown, onAttach, onDetach
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, onBrowserEvent, onLoad
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, isVisible, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
equals, finalize, hashCode
 

Constructor Detail

ComplexPanel

public ComplexPanel()
Method Detail

add

public boolean add(Widget w)
Description copied from class: Panel
Adds a new child widget to the panel.

Specified by:
add in class Panel
Parameters:
w - the child widget to be added
Returns:
true on success (some panels place restrictions on how children may be added or inserted)

clear

public void clear()
Description copied from class: Panel
Removes all widgets from this panel.

Specified by:
clear in class Panel

getWidget

public Widget getWidget(int index)

getWidgetCount

public int getWidgetCount()

getWidgetIndex

public int getWidgetIndex(Widget child)

insert

public boolean insert(Widget w,
                      int beforeIndex)
Inserts a widget into the panel

Parameters:
w - the widget to be inserted
beforeIndex - the index before which it will be inserted
Returns:
true on success (some panels place restrictions on how children may be added or inserted)

iterator

public Iterator iterator()
Description copied from interface: HasWidgets
Gets an iterator for the contained widgets.


remove

public boolean remove(Widget w)
Description copied from class: Panel
Removes a widget from the panel.

Specified by:
remove in class Panel
Parameters:
w - the widget to be removed
Returns:
true if the widget was present


This javadoc distribution was not produced by Google. The official documentation is here.