public void addNativeComponent(AbstractTnComponent uiComponent, int index) {
    android.view.ViewGroup.LayoutParams layoutParams =
        ((View) uiComponent.getNativeUiComponent()).getLayoutParams();
    if (layoutParams == null) {
      layoutParams = getDefaultLayoutParams();
    }

    this.addView((View) uiComponent.getNativeUiComponent(), index, layoutParams);
  }
 public void removeNativeComponentInLayout(AbstractTnComponent uiComponent) {
   this.removeViewInLayout((View) uiComponent.getNativeUiComponent());
 }
 public int indexOfComponent(AbstractTnComponent uiComponent) {
   return this.indexOfChild((View) uiComponent.getNativeUiComponent());
 }