API Reference 0.3.24dart_web_toolkit_uiHasWidgets

HasWidgets abstract class

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

abstract class HasWidgets {

 /**
  * Adds a child widget.
  *
  * @param 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)
  */
 void add(Widget w);

 /**
  * Removes all child widgets.
  */
 void clear();

 /**
  * Removes a child widget.
  *
  * @param w the widget to be removed
  * @return <code>true</code> if the widget was present
  */
 bool remove(Widget w);

 /**
  * Returns an [Iterator] that iterates over this [Iterable] object.
  */
 Iterator<Widget> iterator();
}

Subclasses

HasWidgetsForIsWidget, StackLayoutPanel, TabLayoutPanel, TabPanel

Methods

abstract void add(Widget w) #

Adds a child widget.

@param 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)

abstract void clear() #

Removes all child widgets.

abstract Iterator<Widget> iterator() #

Returns an Iterator that iterates over this Iterable object.

abstract bool remove(Widget w) #

Removes a child widget.

@param w the widget to be removed @return <code>true</code> if the widget was present