Example usage for com.google.gwt.user.client.ui ToggleButton getUpFace

List of usage examples for com.google.gwt.user.client.ui ToggleButton getUpFace

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui ToggleButton getUpFace.

Prototype

public final Face getUpFace() 

Source Link

Document

Gets the up face of the button.

Usage

From source file:geogebra.web.gui.advanced.client.ui.widget.TextButtonPanel.java

License:Apache License

/**
 * Prepares the drop down button for displaying.
 *///ww  w.  java 2 s  .  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");
}