HasOneWidget abstract class
Implemented by panels that have only one widget.
@see SimplePanel
abstract class HasOneWidget extends AcceptsOneWidget {
/**
* Gets the panel's child widget.
*
* @return the child widget, or <code>null</code> if none is present
*/
Widget getWidget();
/**
* Sets this panel's widget. Any existing child widget will be removed.
*
* @param w the panel's new widget, or <code>null</code> to clear the panel
*/
void setWidget(Widget w);
}
Extends
AcceptsOneWidget > HasOneWidget
Subclasses
Methods
abstract Widget getWidget() #
Gets the panel's child widget.
@return the child widget, or <code>null</code> if none is present
abstract void setWidget(Widget w) #
Sets this panel's widget. Any existing child widget will be removed.
@param w the panel's new widget, or <code>null</code> to clear the panel
abstract void setWidgetIsWidget(IsWidget w) #
inherited from AcceptsOneWidget
Set the only widget of the receiver, replacing the previous widget if there was one.
@param w the widget, or <code>null</code> to remove the widget
@see SimplePanel