List of usage examples for com.google.gwt.user.client.ui ToggleButton getUpHoveringFace
public final Face getUpHoveringFace()
From source file:com.google.appengine.demos.sticky.client.Buttons.java
License:Apache License
/** * Creates a {@link ToggleButton} with the specified face images and * stylename./*from w w w . jav a 2 s. c o m*/ * * @param upImage * the image to be used on the up face * @param hvImage * the image to be used on the hover face * @param styleName * the stylename to use for the widget * @param handler * a click handler to which to bind the button * @return the button */ public static ToggleButton createToggleButtonWithImageStates(Image upImage, Image hvImage, String styleName, ClickHandler handler) { final ToggleButton button = createToggleButtonWithImageStates(upImage, styleName, handler); button.getUpHoveringFace().setImage(hvImage); return button; }