Example usage for com.vaadin.server FontAwesome CHEVRON_UP

List of usage examples for com.vaadin.server FontAwesome CHEVRON_UP

Introduction

In this page you can find the example usage for com.vaadin.server FontAwesome CHEVRON_UP.

Prototype

FontAwesome CHEVRON_UP

To view the source code for com.vaadin.server FontAwesome CHEVRON_UP.

Click Source Link

Usage

From source file:fr.amapj.view.views.producteur.livraison.ProducteurLivraisonsView.java

License:Open Source License

public void buttonClick(Label detail, Button b, Long idModeleContratDate) {
    boolean status = (Boolean) b.getData();
    status = !status;/*from   w  w  w.j  a  va  2s  .  c  om*/
    b.setData(status);

    if (status) {
        //
        b.setCaption("Masquer le dtail par amapien");
        b.setIcon(FontAwesome.CHEVRON_UP);
        //
        String content = new GestionContratService().getDetailContrat(idModeleContratDate);
        detail.setValue("<br/>" + content);
    } else {
        //
        b.setCaption("Voir le dtail par amapien");
        b.setIcon(FontAwesome.CHEVRON_DOWN);
        //
        detail.setValue("");
    }
}