Example usage for com.vaadin.server FontAwesome EYE

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

Introduction

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

Prototype

FontAwesome EYE

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

Click Source Link

Usage

From source file:ui.item.InfoViewNew.java

public InfoViewNew(T achievement) {
    setSizeFull();/*from   www. j  a  va  2  s.  c o m*/
    setMargin(true);
    setMargin(new MarginInfo(false, true, false, true));
    this.achievement = achievement;
    this.title = new InfoTitle();
    this.body = new InfoBody();
    addComponents(title, body);

    actions = new InfoActions();
    if ((this.getMyUI() instanceof UserUI) && !(this.getMyUI() instanceof VisitorUI)) {
        edit = new LifetimeButtonSmall("edit", FontAwesome.EDIT);
        delete = new LifetimeButtonSmall("delete", FontAwesome.TRASH_O);
        hide = new LifetimeButtonSmall("hide", FontAwesome.EYE);
        translate = new LifetimeButtonSmall("translate", FontAwesome.FLAG);
        participate = new LifetimeButtonSmall("e-participate", FontAwesome.FLAG);
        edit.addClickListener(this);
        delete.addClickListener(this);
        hide.addClickListener(this);
        translate.addClickListener(this);
        participate.addClickListener(this);
        actions.addComponents(edit, delete, hide, translate, participate);
        addComponent(actions);
        actions.setEnabled(false);
    }
    setStyleName("info");
}