Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

How to switch to a new tab

$
0
0
I currently have a TabSet of tabs.
Code:

List<Tab> tabList = new ArrayList<Tab>();
tabList.add(createTab("tab1", "Tab1", new TabPanel()));
tabList.add(createTab("tab2", "Tab2", new TabPanel()));
TabSet tabSet = new TabSet();
tabSet.setTabs(tabList.toArray(new Tab[tabList.size()]));

I want to be able to add a double click handler in a grid, by double clicking something, it will switch to one of the tabs Im not currently on. How do I achieve this?

Viewing all articles
Browse latest Browse all 4756

Trending Articles