public void setWidget( Widget newWidget )
  {
    // Detach new child from old parent.
    if ( newWidget != null )
    {
      newWidget.removeFromParent();
    }

    // Clear out any existing content before adding a widget.
    DOM.setInnerHTML( widgetContainer, "" );

    // Remove the old list with children to get a new init
    children = null;

    // Logical detach old/attach new.
    widget = newWidget;

    if ( newWidget != null )
    {
      // Physical attach new.
      DOM.appendChild( widgetContainer, newWidget.getElement() );

      // Attach child to tree.
      // if ( tree != null )
      // {
      // tree.adopt( widget, this );
      // }

    }
  }