Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to switch to a new tab

    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?

    #2
    Did you already see TabSet.selectTab()?

    Comment


      #3
      How do i get the tabset from the current grid I'm on?

      Comment


        #4
        Pass it around as parameter in your classes or pass an parent widget around in your classes and get it as child.

        Comment

        Working...
        X