CoolBar.indexOf

Searches the receiver's items in the order they are currently being displayed, starting at the first item (index 0), until an item is found that is equal to the argument, and returns the index of that item. If no item is found, returns -1.

@param item the search item @return the visual order index of the search item, or -1 if the item is not found

@exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if the item is null</li> <li>ERROR_INVALID_ARGUMENT - if the item is disposed</li> </ul> @exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul>

class CoolBar
int
indexOf

Meta