public interface

HasWidgets

implements Iterable<T>
com.google.gwt.user.client.ui.HasWidgets
Known Indirect Subclasses

Class Overview

A widget that implements this interface contains widgets and can enumerate them.

Summary

Nested Classes
interface HasWidgets.ForIsWidget Extends this interface with convenience methods to handle IsWidget
Public Methods
abstract void add(Widget w)
Adds a child widget.
abstract void clear()
Removes all child widgets.
abstract Iterator<Widget> iterator()
Gets an iterator for the contained widgets.
abstract boolean remove(Widget w)
Removes a child widget.
[Expand]
Inherited Methods
From interface java.lang.Iterable

Public Methods

public abstract void add (Widget w)

Adds a child widget.

Parameters
w the widget to be added
Throws
UnsupportedOperationException if this method is not supported (most often this means that a specific overload must be called)

public abstract void clear ()

Removes all child widgets.

public abstract Iterator<Widget> iterator ()

Gets an iterator for the contained widgets. This iterator is required to implement remove().

public abstract boolean remove (Widget w)

Removes a child widget.

Parameters
w the widget to be removed
Returns
  • true if the widget was present