code: @Override
      public void selectTab(final int index) {
          if (index < PAGE_LIMIT) {
              // visible pages
              flagSelected(prevSelectedIndex, false);
              super.selectTab(index);
              flagSelected(index, true);
              prevSelectedIndex = index;
  
              if (index == PAGE_LIMIT - 1 && offPageContainer.getSelectedDeck() == -1) {
                  offPageContainer.selectDeck(0);
              }
  
          } else {
              // off page
              offPageContainer.selectDeck(offPageIndex(index));
              if (getSelectedIndex() == PAGE_LIMIT - 1) {
                  SelectionEvent.fire(this, PAGE_LIMIT - 1);
              }
              tabs.lastTab().setText(offPageContainer.getTexts().get(offPageIndex(index)).getText());
              selectTab(PAGE_LIMIT - 1);
          }
      }
docs: ------------------------------------------------------ select