Example usage for com.vaadin.server FontAwesome LIGHTBULB_O

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

Introduction

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

Prototype

FontAwesome LIGHTBULB_O

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

Click Source Link

Usage

From source file:ui.button.LightsOnOffButton.java

License:Apache License

public LightsOnOffButton(String language) {
    super("", FontAwesome.LIGHTBULB_O);
    addClickListener(new Button.ClickListener() {

        @Override/*from   w w w .j av a 2 s.c  o m*/
        public void buttonClick(Button.ClickEvent event) {
            //
            ((MyUI) getUI()).getDesk().swapLights();
        }
    });
    setDescription(Translator.getTranslation("Turn lights on/off", language));
}