That sample shows how to use external controls for switching the panel

toggleControl behavior used as for any other switchable panel (togglePanel, accordion)

targetItem could be defined with tab name and additionally tabPanel supports next predefined shortcuts:

- @next
- @prev
- @first
- @last

Additionally you could manage the current tab at server side using activeItem attribute at tabPanel bound to some Bean property which holds current tab name.