/* (non-Javadoc)
   * @see org.xidget.feature.IWidgetCreationFeature#destroyWidget()
   */
  public void destroyWidgets(IXidget parent) {
    // remove from parent
    IWidgetContainerFeature containerFeature = parent.getFeature(IWidgetContainerFeature.class);
    if (containerFeature != null) containerFeature.removeWidget(xidget);

    // clear references
    jPanel = null;
    component = null;
  }