List of usage examples for com.google.gwt.user.client.ui ToggleButton getDownFace
public final Face getDownFace()
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 ww . ja v 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 dnImage * the image to be used on the down 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, Image dnImage, String styleName, ClickHandler handler) { final ToggleButton button = createToggleButtonWithImageStates(upImage, hvImage, styleName, handler); button.getDownFace().setImage(dnImage); return button; }
From source file:geogebra.web.gui.advanced.client.ui.widget.TextButtonPanel.java
License:Apache License
/** * Prepares the drop down button for displaying. *//* w w w .j a v a 2s. c o m*/ protected void prepareChoiceButton() { ToggleButton dropDownButton = getChoiceButton(); dropDownButton.getUpFace().setImage(getChoiceButtonImage()); dropDownButton.getDownFace().setImage(getChoiceButtonImage()); dropDownButton.setStyleName("choice-button"); }
From source file:sk.seges.acris.widget.client.form.select.TextButtonPanel.java
License:Apache License
protected void prepareChoiceButton() { ToggleButton dropDownButton = getChoiceButton(); dropDownButton.getUpFace().setImage(choiceButtonImage); dropDownButton.getDownFace().setImage(choiceButtonImage); dropDownButton.setStyleName("choice-button"); }