@Override
  protected View getTextViewForTab(int tabIndex) {
    if (tabPane.isValid()) {
      return super.getTextViewForTab(tabIndex);
    }
    return null;
  }
@Override
  protected View getTextViewForTab(int tabIndex)