tabPanel.setBorders(false);
final HashMap<TabItem, TCLink> tabLookup = new HashMap<TabItem, TCLink>();
for(int i = 0; i < matches.size(); i++){
TabItem item = new TabItem("match " + (i+1));
item.setScrollMode(Scroll.AUTO);
item.setLayout(new FitLayout());
NoteItem mItem = new NoteItem(matches.get(i).getText(), matches.get(i).getLink().getCurrentDerivedId(), matches.get(i).getNotes());
item.add(mItem);
if(matches.get(i).getLink().getType().equals(TCLink.TYPE_CONFIRMED))
item.addStyleName("tc-match-confirmedMatch");
else
item.addStyleName("tc-match-unconfirmedMatch");
tabPanel.add(item);
tabLookup.put(item, matches.get(i).getLink());
}
// tab selection listener to unhighlight paragraph in TCSection