public void addTab(@NotNull Tab tab){
  TabHeader header=tab.getHeader();
  header.setDelegate(this);
  TabPresenter content=tab.getContent();
  tabs.add(tab);
  view.addHeader(header);
  view.addContent(content);
}

public void addTab ( @ NotNull Tab tab ) { TabHeader header = tab . getHeader ( ) ; header . setDelegate ( this ) ; TabPresenter content = tab . getContent ( ) ; tabs . add ( tab ) ; view . addHeader ( header ) ; view . addContent ( content ) ; }
adds tab to container . tab contains header and associated content .
