Example usage for com.google.gwt.user.client.ui TabBar getTabCount

List of usage examples for com.google.gwt.user.client.ui TabBar getTabCount

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui TabBar getTabCount.

Prototype

public int getTabCount() 

Source Link

Document

Gets the number of tabs present.

Usage

From source file:edu.caltech.ipac.firefly.ui.panels.Toolbar.java

private int indexOf(TabBar bar, TabBar.Tab tab) {
    if (bar != null) {
        for (int i = 0; i < bar.getTabCount(); i++) {
            if (bar.getTab(i).equals(tab)) {
                return i;
            }// ww w  .  j  a  va 2 s.co  m
        }
    }
    return -1;
}