Retrieves the index of the image displayed on this button.
public final int getImageIndex()
Returns the index of the image, if one is associated with this button; otherwise, returns -1.
The value returned by this method specifies an image in the parent toolbar's image list.