TabStrip.findTab

Overview | Methods | This Package | All Packages

TabStrip.findTab

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.

Syntax

public final int findTab( TabItem item )

public final int findTab( String text )

Parameters

item

The TabItem object that represents the tab to search for.

text

The text for the tab to search for.

Return Value

Returns the zero-based index of the tab if it is found in the tab strip; returns -1 if the tab is not found.

Remarks

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.