com.google.gwt.user.client.ui
Class ComplexPanel
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
- 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.
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 |
ComplexPanel
public ComplexPanel()
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 insertedbeforeIndex
- 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.