Searches for the specified tab in the tab strip, returning the zero-based index of the tab within the tab strip if it is found.
public final int findTab( TabItem item )
public final int findTab( String text )
item
The TabItem object that represents the tab to search for.
text
The text for the tab to search for.
Returns the zero-based index of the tab if it is found in the tab strip; returns -1 if the tab is not found.
This method uses the equals method to determine whether the TabItem object passed in the item parameter or created from the text parameter is equal to one of the tabs contained in this tab strip.