Add clickable icon in each tab of tabpanel

I have a TabPanel with dynamically created closable tabs. What I would like to do is within each tab next to the tab title add a clickable refresh icon so that the tab content can be refreshed by the user.