public interface

HasOneWidget

implements AcceptsOneWidget
com.google.gwt.user.client.ui.HasOneWidget
Known Indirect Subclasses

Class Overview

Implemented by panels that have only one widget.

See Also

Summary

Public Methods
abstract Widget getWidget()
Gets the panel's child widget.
abstract void setWidget(Widget w)
Sets this panel's widget.
[Expand]
Inherited Methods
From interface com.google.gwt.user.client.ui.AcceptsOneWidget

Public Methods

public abstract Widget getWidget ()

Gets the panel's child widget.

Returns
  • the child widget, or null if none is present

public abstract void setWidget (Widget w)

Sets this panel's widget. Any existing child widget will be removed.

Parameters
w the panel's new widget, or null to clear the panel